V
V
vfvnvsyevsky2015-03-12 22:55:50
Django
vfvnvsyevsky, 2015-03-12 22:55:50

How to change fields in Django User table?

It is necessary to make the Email field mandatory, how to implement it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey K, 2015-03-13
@mututunus

Use your user model https://docs.djangoproject.com/en/1.7/topics/auth/...

R
Ryder95, 2017-11-22
@Ryder95

User._meta.get_field('email')._unique=True
And somehow also with a required field, you need to look in the source code)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question