#30012: Ability to specify a custom AnonymousUser
-----------------------------------------+------------------------
Reporter: Sanket Saurav | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Currently, it isn't possible to tell Django auth to use a custom
AnonymousUser.
https://github.com/django/django/blob/master/django/contrib/auth/__init__.py#L179
There is a case in favour of the need for this: if an application uses a
custom user model, there can be additional properties and methods added to
it, and it makes sense for the AnonymousUser to be able to mirror those
properties (even if they are falsey). For the sake of coherence, I believe
it makes sense to have the ability to specify a custom AnonymousUser
class, just as the AbstractUser.
--
Ticket URL: <https://code.djangoproject.com/ticket/30012>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.0d9183439f0609badce1d5d5de8ab6e4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.