1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-20 13:29:37 +02:00
AdventureLog/backend/server/users/models.py
Sean Morley b5e2211123 temp id
2024-08-11 08:43:58 -04:00

11 lines
No EOL
441 B
Python

import uuid
from django.contrib.auth.models import AbstractUser
from django.db import models
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=True, unique=True, null=True, blank=True)
def __str__(self):
return self.username