i have project with account model with many field and i want a person can signup with phone and password and can create user instance but i want when user edit the profile the user should fill that field .i do not know how to use blank and null for that field like (national-code , city and ,,,) ?
if for example i add
national_codefield as null=False and blank=False i must add it in my custom UserManager? i mean when any field is mandatory we must add it in manager can any one help me ?
Asked
Active
Viewed 18 times
0
fahime
- 5
- 3
-
Can you please add some clarification on your second point. – Lzak Feb 15 '22 at 15:46
-
I think you will find at least some answers here: https://stackoverflow.com/questions/8609192/what-is-the-difference-between-null-true-and-blank-true-in-django – jojjo64 Feb 15 '22 at 16:12
-
[Lzak] i mean consider my authorization need first_name and last_name and email i do not know i must add these field in Usermanager or Usermanager is just for phone_number as usermane and password and other field save automatically. – fahime Feb 15 '22 at 17:47