#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
---------------------------------+--------------------------------------
Comment (by apollo13):
Ok, running contrib tests with the custom user model from auth fails like
this:
{{{
admin.logentry: 'user' has a relation with model auth.ExtensionUser, which
has either not been installed or is abstract.
auth.user: Model has been swapped out for 'auth.ExtensionUser' which has
not been installed or is abstract.
comments.comment: 'user' has a relation with model auth.ExtensionUser,
which has either not been installed or is abstract.
comments.commentflag: 'user' has a relation with model auth.ExtensionUser,
which has either not been installed or is abstract.
}}}
This is to be expected since auth.ExtensionUser is only available inside
the auth tests. In a normal manage.py test run this shouldn't cause
problems since your custom User will be in INSTALLED_APPS.
Attaching a patch to fix the auth errors.
--
Ticket URL: <https://code.djangoproject.com/ticket/19596#comment:3>
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.