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
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
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
3 matches
Mail list logo