#20088: Django admin log depends on User model having a field named id
-------------------------------------+-------------------------------------
     Reporter:  Ryan Leckey          |                    Owner:  nobody
  <leckey.ryan@…>                    |                   Status:  closed
         Type:  Bug                  |                  Version:  master
    Component:  contrib.admin        |               Resolution:  duplicate
     Severity:  Normal               |             Triage Stage:
     Keywords:                       |  Unreviewed
  configurable,user,model            |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  1
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by Ryan Leckey <leckey.ryan@…>):

 No. #20049 is about the models themselves being incapable to be acted upon
 if they have non-integer primary keys (I actually don't encounter that bug
 using mysql and InnoDB).

 This issue causes Login to fail as the get_admin_log template tag is
 attempting to retrieve users by a relation lookup. If you change the
 linked code to the snippet above it works (at least in my application).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20088#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 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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to