Comments (4)
The last time I used that it worked. I'll have a look at it tomorrow.
from django-mongoadmin.
Yeah, you're right that doesn't work. I was never sure about how to represent that right in the admin. Now that I think about it for some more time: Adding an inline admin with exactly one form should be the way to go. That should actually be quite easy to handle. I'm not sure how far your pull request has come along. If it's not that far I'd look into it or I can wait.
from django-mongoadmin.
I didn't get very far. My goal was to show a single inline form, but the assumption that it's a list goes down pretty far, and I was trying to remove that assumption. Maybe the best option is to wrap the field in some kind of fake list in DocumentAdmin.get_inline_instances()
.
from django-mongoadmin.
The last commit should fix this. Though I've just noticed it doesn't work if the embedded document is required.
from django-mongoadmin.
Related Issues (20)
- Circular Import Error HOT 1
- "You don't have permission to edit anything" HOT 9
- cannot import name LOOKUP_SEP
- cannot import name MAX_SHOW_ALL_ALLOWED HOT 9
- Maximum recursion exceeded with a ReferenceField('self') in Document HOT 1
- Crash when there is no relational database at all HOT 7
- `raw_id_fields` crashing HOT 22
- ImportError: No module named 'mongoadmin.contenttypes' HOT 1
- TypeError: patch_document() got an unexpected keyword argument 'bound' HOT 7
- Exceptions using mongoadmin.auth and mongoadmin.form HOT 4
- 'DatabaseWrapper' object has no attribute 'Database' HOT 3
- 'PermissionManager' object has no attribute 'clone' HOT 3
- AttributeError: 'module' object has no attribute 'User'
- Please, example app with preconfigured settings
- mongo importerror: cannot import name get_verbose_name HOT 3
- clear HOT 2
- ImportError: cannot import name 'update_wrapper' HOT 1
- patch to fix saving error related to missing new_objects attribute HOT 1
- I get an error when I start server
- Django version 1.9 above, we are getting this problem HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-mongoadmin.