#3011: Allow for extendable auth_user module
-------------------------------+------------------------------------
     Reporter:  nowell strite  |                    Owner:  nobody
         Type:  New feature    |                   Status:  new
    Component:  contrib.auth   |                  Version:
     Severity:  Normal         |               Resolution:
     Keywords:  auth_user      |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  1
  Needs tests:  1              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by Kronuz):

 There are problems some times when you need to import the `UserTemplate`
 (circular imports) ...for this reason, I split the file to put the models
 in a new file called `base.py` (perhaps `abstract.py` could be a better
 name) and left the `model.py` file to be only for the creation of the
 default `User` from the template, or loading of the custom `User` model
 class from some other module (as set up in `AUTH_USER_MODULE`, which
 should be a string in the form: `custom_auth.models.User`) The custom user
 model could (and maybe should) have the abstract
 `contrib.auth.base.UserTemplate` model as its base. I believe we could
 also have a `BaseUserAbstractModel` in addition to (or instead of)
 `UserTemplate.
 I'm attaching the patch now.

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