1👍
✅
Problem solved.
I had an explicit entry:
objects = models.Manager()
In the model class. Removing it fixed the problem.
0👍
You can also just lift the method from UserenaBaseProfileManager
and place it in your class or derive your Manger class from that class. I opted for the former because I build my managers as QuerySet objects and then use
objects = ModelQuerySet.as_manager()
And Userena was built before that was possible. I needed some methods in my Manager class so just deleting objects =
was not an option for me.
- [Answer]-Django: Creating editable default values for model instance based on foreignkey existance
- [Answer]-Multiple Submit buttons in django
- [Answer]-Issue with pip installing django in ubuntu server virtualenv
- [Answer]-How to minify JS with Django templates, and RequireJS
Source:stackexchange.com