#19284: django.contrib.auth.forms imports User instead of using get_user_model
---------------------------------+-------------------------
     Reporter:  kunitoki@…       |      Owner:  nobody
         Type:  Uncategorized    |     Status:  new
    Component:  contrib.auth     |    Version:  1.5-alpha-1
     Severity:  Release blocker  |   Keywords:  auth user
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+-------------------------
 When adding a user in admin (for which i've subclassed the form), i'm
 getting this:

   '''Manager isn't available; User has been swapped for 'base.MyUser''''

 As in forms.py there is the line:

   ''from django.contrib.auth.models import User''

 Shouldn't this use get_user_model instead ?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19284>
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 https://groups.google.com/groups/opt_out.


Reply via email to