Code Monkey home page Code Monkey logo

Comments (4)

jschrewe avatar jschrewe commented on July 2, 2024

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.

antux avatar antux commented on July 2, 2024

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.

jschrewe avatar jschrewe commented on July 2, 2024

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.

antux avatar antux commented on July 2, 2024

Thank you Jan, when you update mongoadmin, throught i had updated mongoform.

from django-mongoadmin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.