#19596: Django admin should use "_default_manager" not "objects" on csutom auth
model class.
-------------------------------+---------------------------
     Reporter:  anonymous      |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  contrib.auth   |    Version:  1.5-beta-1
     Severity:  Normal         |   Keywords:  auth, objects
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+---------------------------
 My case:

 I created custom users model "MyUser" and set it as auth model in settings
 file.

 class MyUser(MyAbstractBaseModel, AbstractBaseUser, PermissionsMixin):
     ...
     my_objects = UserManager()

 After login to Admin Panel I've got an error: "type object 'MyUser' has no
 attribute 'objects'"

 Moreover "_default_manager" is pointing to "UserManager" in
 MyAbstractBaseModel. So, in my opinion Admin Panel should use
 _default_manager, not "objects".

 Regards.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19596>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to