Last active
March 9, 2018 03:39
-
-
Save santoshpy/fddba4c89089bb1261584b5e2245222b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.auth.models import User | |
admin.site.unregister(User) | |
from app_name.models import User | |
admin.site.register(User) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.contrib.auth.models import AbstractUser | |
class User(AbstractUser): | |
bio = models.TextField(max_length=500, blank=True) | |
location = models.CharField(max_length=30, blank=True) | |
birth_date = models.DateField(null=True, blank=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUTH_USER_MODEL = 'apps_name.models.User' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment