Last active
October 15, 2023 11:06
-
-
Save Pal-Sandeep/9d9282b75c1bb0d9c2eb1a77fcff38de to your computer and use it in GitHub Desktop.
Django's AbstractUser
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 AbstractUser | |
class CustomUser(AbstractUser): | |
profile_picture = models.ImageField(upload_to='profile_pictures/') | |
biography = models.TextField() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment