0
  1. 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 ,,,) ?

  2. if for example i add national_code field 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 ?

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

0 Answers0