#18093: AnonymousUser should have a 'pk' attribute
------------------------------+------------------------------------
     Reporter:  lamby         |                    Owner:  nobody
         Type:  New feature   |                   Status:  new
    Component:  contrib.auth  |                  Version:  1.4
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Accepted
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  1             |                    UI/UX:  0
------------------------------+------------------------------------
Changes (by ptone):

 * component:  Uncategorized => contrib.auth
 * type:  Uncategorized => New feature
 * stage:  Unreviewed => Accepted


Comment:

 While from a purity point of view - "primary key" pk implies a database
 persistence, the truth is that in Django models, pk is more removed from
 the actual db column than id is.

 However I can't imagine any major negative impacts from also setting
 pk=None in AnonymousUser

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

Reply via email to