mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 06:19:38 +02:00
users
This commit is contained in:
parent
d12a396626
commit
b88cd5df8d
3 changed files with 49 additions and 0 deletions
|
@ -5,6 +5,7 @@ from django_resized import ResizedImageField
|
|||
|
||||
class CustomUser(AbstractUser):
|
||||
profile_pic = ResizedImageField(force_format="WEBP", quality=75, null=True, blank=True, upload_to='profile-pics/')
|
||||
uuid = models.UUIDField(default=uuid.uuid4, editable=False, unique=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.username
|
Loading…
Add table
Add a link
Reference in a new issue