On Aug 4, 2017 12:36 AM, "Mike Dewhirst" <mi...@dewhirst.com.au> wrote:

I have read  widely (including the docs) and been daunted by the notion of
coverting auth.user  into a custom user. I have data and wonder if there
have been any recent recipes for doing this?

On a related note, I'd recommend implementing a custom user model
immediately on every new project, even if you don't intend to change
anything on the built-in user immediately. It is as simple as inheriting
from django.contrib.auth.models.AbstractUser like this:

class MyUser(AbstractUser):

And then setting AUTH_USER_MODEL to MyUser. At that point, changes to the
user model are handled via standard migrations.

Obviously this doesn't help existing projects. You'll still be stuck with
the foreign key shell game that is implementing a custom user after the


You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to