Comments (4)
Okay, so this was more annoying then expected but it works for me now.
You will need mongodbforms from github (it gets installed as a dependency by mongoadmin), so run pip install --upgrade git+https://github.com/jschrewe/django-mongodbforms.git#mongodbforms
and you should be all set.
Hopefully... :)
from django-mongoadmin.
Yes, works, but with one exception, i would like to propose solutions, but i'm not expert in python or django.
NotUniqueError at /admin/django/user/add/
Tried to save duplicate unique keys (E11000 duplicate key error index: demo.user.$username_1 dup key: { : "demo"
Exception Location: /media/basura/htdocs/modulos/mongoengine/document.py in save, line 290
...
File "/media/basura/htdocs/modulos/mongoadmin/options.py", line 1082, in add_view
self.save_model(request, new_object, form, change=False)
File "/media/basura/htdocs/modulos/mongoadmin/options.py", line 799, in save_model
return save_instance(form=form, instance=obj, construct=False)
...
from django-mongoadmin.
I'm pretty sure I already know the solution and thought I also found a fix. The only reason I can think why you can see it is that your version of mongodbforms didn't correctly update. Could you uninstall it using pip uninstall mongodbforms
and install it with the above command again?
from django-mongoadmin.
Thank you Jan, when you update mongoadmin, throught i had updated mongoform.
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
- '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.