how to add field in User

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to add field in User

niranjan shukla
Model.py


from django.contrib.auth.models import User

# I want to add one more field of gender(male and female)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ca037b52-8d4b-4884-b9d3-4959eac29414%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: how to add field in User

Kasper Laudrup
On August 17, 2019 3:51:34 PM GMT+02:00, niranjan shukla <[hidden email]> wrote:
Model.py


from django.contrib.auth.models import User

# I want to add one more field of gender(male and female)


This might help:
https://wsvincent.com/django-custom-user-model-tutorial/

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/58F5ED9C-E044-4DD1-8685-ADA236BF0247%40stacktrace.dk.