#19596: Django admin should use "_default_manager" not "objects" on csutom auth
model class.
---------------------------------+--------------------------------------
     Reporter:  anonymous        |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  contrib.auth     |                  Version:  1.5-beta-1
     Severity:  Release blocker  |               Resolution:
     Keywords:  auth, objects    |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by kmtracey):

 * severity:  Normal => Release blocker
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0
 * type:  Uncategorized => Bug
 * stage:  Unreviewed => Accepted


Comment:

 This report is lacking a traceback, which makes it hard to identify where
 the problem is exactly. Grepping admin code for ".objects" does not show
 any hits, so I believe admin is correctly using `_default_manager` rather
 than `objects`. Grepping auth code, however, does show many places where
 `UserModel.objects` is used, where `UserModel` is the model returned from
 `get_user_model()` and that seems wrong to me. Shouldn't any auth code
 which is dealing with a potentially customized User model be using
 `_default_manager` rather than `objects`?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19596#comment:1>
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