Re: Customising django user model

2019-05-22 Thread אורי
Hi Sipum, We did it on Speedy Net and you can see our models and settings there: https://github.com/speedy-net/speedy-net https://github.com/speedy-net/speedy-net/blob/master/speedy/core/accounts/models.py#L160 https://github.com/speedy-net/speedy-net/blob/master/speedy/core/settings/base_with_lo

Re: Customising django user model

2019-05-20 Thread Sipum Mishra
Thanks a lot.. @Joe @Mahes It will help me a lot. On Tue, 21 May, 2019, 8:14 AM mahesh boini, wrote: > Extend AbstractUser class and give that name in settings file like > AUTH_USER_MODEL=‘appname.modelname’ > > On Tue, 21 May 2019 at 05:51, Joe Reitman wrote: > >> You can customize the user ta

Re: Customising django user model

2019-05-20 Thread mahesh boini
Extend AbstractUser class and give that name in settings file like AUTH_USER_MODEL=‘appname.modelname’ On Tue, 21 May 2019 at 05:51, Joe Reitman wrote: > You can customize the user table by extending AbstractUser and add the > fields you want to add (gender, phone) > > I have a custom user examp

Re: Customising django user model

2019-05-20 Thread Joe Reitman
You can customize the user table by extending AbstractUser and add the fields you want to add (gender, phone) I have a custom user example adding age field: from django.db import models from django.contrib.auth.models import AbstractUser class CustomUser(AbstractUser): age = models.PositiveI

Re: Customising django user model

2019-05-20 Thread Sipum Mishra
Ok thanks for reply. On Mon, 20 May, 2019, 5:36 PM Rafael E. Ferrero, wrote: > Hello, you must to extend User model... search on google with this > aproach!! > > Cheers! > > Rafael E. Ferrero > > > El dom., 19 may. 2019 a las 14:13, Sipum () escribió: > >> Hello Friends, >> >> I want to customis

Re: Customising django user model

2019-05-20 Thread Rafael E. Ferrero
Hello, you must to extend User model... search on google with this aproach!! Cheers! Rafael E. Ferrero El dom., 19 may. 2019 a las 14:13, Sipum () escribió: > Hello Friends, > > I want to customise django default user table and which should consist of > name,phone, email and gender. > And afte