Monday, August 31, 2015

Re: What are the disadvantages of using a custom user model?

Thanks Gergely. Your last sentence says it all. I'm going with a custom user model.

On Monday, August 31, 2015 at 9:06:16 AM UTC+3, Gergely Polonkai wrote:

Hello,

is it the fields or the functionality you don't need? If it is really the functionality, you shouldn't bother; just don't use it. If some of the fields, then it worths an evaluation on why you don't need them, if you will have only a few users (e.g. a company internal app), then again, don't bother. If you will have tons, you should go with custom users, although be warned that changing the user model while the project is live is a real PITA.

Best,
Gergely

On 31 Aug 2015 06:11, "a.esmail" <abdulla...@gmail.com> wrote:
Hello,
I am evaluating whether it is better to use a custom user model in django or just extend django.contrib.auth.models.User.
The default User model offers a lot of the functionality that I don't need in my project and doesn't have a lot of fields that I will need.

My question is, what should I be worried about when using a custom User model?

One thing I can think of is, some plugins/apps might require django's built-in User model to function properly.
Any other issues I should be aware of?

Thank you,

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/049a9bbd-a2c0-4aa8-a65c-8bda8849cba9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/db502e2b-d7f3-48ff-a94c-7f3ad9bbb19c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment