#17254: ModelBackend should have a get_anonymous_user method ------------------------------------+-------------------------------------- Reporter: riccardodivirgilio | Owner: nobody Type: Bug | Status: closed Component: contrib.auth | Version: Severity: Normal | Resolution: duplicate Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 1 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ------------------------------------+-------------------------------------- Changes (by ptone):
* status: reopened => closed * resolution: => duplicate Comment: This is basically a dupe of #3011 see also: http://stackoverflow.com/questions/896421/how-to-change-default- django-user-model-to-fit-my-needs AnonUsers and AuthUsers are fundamentally different in having a DB instance. You may find it easier to write a util method that takes a user user_has_discount(request.user) then factor all your checking into that -- Ticket URL: <https://code.djangoproject.com/ticket/17254#comment:8> 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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.