#32287: AUTH_USER_MODEL does not allow the User to be from an app that has a 
label
with a '.' in it.
----------------------------------------+---------------------------------
               Reporter:  SuyogSoti     |          Owner:  nobody
                   Type:  Bug           |         Status:  new
              Component:  contrib.auth  |        Version:  master
               Severity:  Normal        |       Keywords:  AUTH_USER_MODEL
           Triage Stage:  Unreviewed    |      Has patch:  0
    Needs documentation:  0             |    Needs tests:  0
Patch needs improvement:  0             |  Easy pickings:  1
                  UI/UX:  0             |
----------------------------------------+---------------------------------
 If I have an app called auth, that has my custom user model, I need to
 change the label to make it work with INSTALLED_APPS.

 If I change the label to project.auth, then I have to change the
 AUTH_USER_MODEL to 'project.auth.User'.

 This currently give an error that says that 'project.auth.User' is not of
 the form 'app_label.UserModel' even when it is. This because of the code
 
here:https://github.com/django/django/blob/master/django/contrib/auth/checks.py#L15
 that assumes that anything before the first split is a label and after is
 the model name.

 I would like to fix this issue.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32287>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.884e16c8198cd45bebd51d639a355b1e%40djangoproject.com.

Reply via email to