Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.contrib.auth.models import AbstractUser
- class MyUser(AbstractUser):
- ....
- # your custom fields
- MyUser._meta.get_field('username').max_length = 255 # or 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement