Is it the same if I want to specify email as required field, isn't? El diumenge, 22 març de 2015 15:55:33 UTC+1, Tim Graham va escriure: > > Currently you need to use a custom user model if you want to change the > username max_length. There's an open ticket to increase the default length > to 254 though: https://code.djangoproject.com/ticket/20846 > > On Sunday, March 22, 2015 at 10:45:34 AM UTC-4, somen...@gmail.com wrote: >> >> Thanks, Anderson, but can I overwrite the length of User class? How? >> Sorry I'm still a newbee? With AbstractUser? [ >> https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#django.contrib.auth.models.CustomUser] >> >> or Extending user class [ >> https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#extending-the-existing-user-model >> ]? >> >> On the other, hand, it were useful if someone could add the information >> in the web page. >> >> El diumenge, 22 març de 2015 15:28:34 UTC+1, Anderson Resende va escriure: >>> >>> No, the user class uses 75. You need to change to 254. >>> >>> models.EmailField(max_lenght=254) >>> >>>> >>>>
-- 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 http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d419f934-1c7b-4167-b602-d29fce65cc32%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.