Closed Choko256 closed 11 years ago
If you use the github version of mongoadmin you need the github version mongodbforms.
They're too tightly linked to be really independent. And if I knew a decent way to make a single project out of the two (and maybe throw some generic views in the mix) I'd do that.
I just updated both packages on Pypi. That should take care of your first problems with the patch_document call.
Ok thanks ! :yum:
Could you post a backtrace and a little more information on the contribute_to_class
problem? If it happens during startup python manage.py runserver --traceback
should do the trick and produce something useable. Because every Django manager should have a contribute_to_class
method inherited. And I'm also pretty sure I tested this, so I'm a bit lost at the moment.
Yep, I'll do that, but on another VM I just installed, the problem does not appear... very strange. I will see that tomorrow !
Good evening !
So, I thought about it while staring at the code and I think the AttributeError came from the fact that you used the wrong patch_document
function.
So, I'm closing this for now. Feel free to reopen if you have any more problems with it.
You're right, a little update of mongodbforms and mongoengine and it rulz ! Thanks ! :+1:
Rehello !
I run Python 3.3.2 with Django 1.5.4, MongoEngine 0.8.4 and Windows XP 32bit.
When I want to run the django development server, I got this error. After some search in your code, I found the reference to "patch_document" in contenttypes.models. It seems in mongodbforms 0.2.2, there is no third parameter called "bound". I tried to remove these parameters for your calls and it seems to work.
Another error can be raised : "Attribute Error: " with no message. It is because the "ContentTypeManager" in django.contrib.contenttypes.models has no "contribute_to_class" method.
[mongoadmin.contenttypes.models] Line 25: super(ContentTypeManager, self).contribute_to_class(model, name) raises this error. I comment this line and the development server starts, but I don't really know what this method must do.
I hope it will help you to improve django-mongoadmin ! :+1:
Regards, Choko256