#27524: Using user instance (instead of get_user_model()) leads to errors when 
user
model is overridden
------------------------------+--------------------------------------
     Reporter:  Andy Martin   |                    Owner:  nobody
         Type:  Bug           |                   Status:  new
    Component:  contrib.auth  |                  Version:  1.8
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  1             |      Needs documentation:  0
  Needs tests:  1             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+--------------------------------------

Comment (by Simon Charette):

 Hello Andy,

 There's many occurrences of access to `instance._meta` through Django's
 code base where it's assumed to return the same value as
 `instance.__class__._meta`. In order to prevent breakages I think it
 should be fixed in the library you use to expose `_meta` API compliant
 objects.

--
Ticket URL: <https://code.djangoproject.com/ticket/27524#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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.cf7804e56c93cf281893a324a634174f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to