1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-21 22:09:36 +02:00
This commit is contained in:
Sean Morley 2024-08-11 08:38:46 -04:00
parent a08a91388d
commit cc0e50076f
2 changed files with 13 additions and 7 deletions

View file

@ -5,7 +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, primary_key=True)
uuid = models.UUIDField(default=uuid.uuid4, editable=False, unique=True, primary_key=True, null=True, blank=True)
def __str__(self):
return self.username