Re: What Way is best to extend User in Django 1.11?

2017-07-18 Thread James Bennett
If the fields you're adding are things that you need to know for purposes of figuring out who someone is and what they're allowed to do, put them in a custom User model. If the fields you're adding are not for the purpose of figuring out who someone is and what they're allowed to do, put them in a

Re: What Way is best to extend User in Django 1.11?

2017-07-18 Thread Avraham Serour
I suggest creating a profile, leave the auth.User only for auth, all else specific to you application use your own model and reference to that On Tue, Jul 18, 2017 at 9:48 AM, 李余通 wrote: > How to extend User?I find many ways; > 1. Use Profile > eg: > > class UserProfile(models.Model): > use

What Way is best to extend User in Django 1.11?

2017-07-17 Thread 李余通
How to extend User?I find many ways; 1. Use Profile eg: class UserProfile(models.Model): user = models.OneToOneField(User) major = models.TextField(default='', blank=True) This way is easy to understand,However,it will create a new table in sql,I heard this will add System burden. 2