Thanks a lot.. @Joe @Mahes It will help me a lot. On Tue, 21 May, 2019, 8:14 AM mahesh boini, <maheshboini...@gmail.com> 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 <jreitma...@gmail.com> 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 example adding age field: >> >> from django.db import models >> from django.contrib.auth.models import AbstractUser >> >> class CustomUser(AbstractUser): >> age = models.PositiveIntegerField(null=True, blank=True) >> >> >> On Sunday, May 19, 2019 at 12:13:08 PM UTC-5, Sipum wrote: >>> >>> Hello Friends, >>> >>> I want to customise django default user table and which should consist >>> of name,phone, email and gender. >>> And after that when every time a user logs in, he/she should able to log >>> in through an OTP to phone or email. >>> >>> can anyone guide me What to do here.?? >>> >>> Thanks. >>> Sipum >>> >> -- >> 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 >> https://groups.google.com/d/msgid/django-users/24afe883-98b9-4bfc-a9fe-284c7a6cb771%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/24afe883-98b9-4bfc-a9fe-284c7a6cb771%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> 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+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 > https://groups.google.com/d/msgid/django-users/CANR2ZjviAk_hCz%2BVum2kUa7vo6SJP8ZCuOsg0cH9uLncL_mDBQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CANR2ZjviAk_hCz%2BVum2kUa7vo6SJP8ZCuOsg0cH9uLncL_mDBQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > 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+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 https://groups.google.com/d/msgid/django-users/CAGHZBzzNHg4-Xkn5aGVRpttxBZooKy1DSS_SGNU5gbUdW7FCYA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.