2024-08-11 08:26:42 -04:00
|
|
|
import uuid
|
2024-07-08 11:44:39 -04:00
|
|
|
from django.contrib.auth.models import AbstractUser
|
|
|
|
from django.db import models
|
2024-07-18 11:07:24 -04:00
|
|
|
from django_resized import ResizedImageField
|
2024-07-08 11:44:39 -04:00
|
|
|
|
|
|
|
class CustomUser(AbstractUser):
|
2024-07-18 11:07:24 -04:00
|
|
|
profile_pic = ResizedImageField(force_format="WEBP", quality=75, null=True, blank=True, upload_to='profile-pics/')
|
2024-08-11 09:07:57 -04:00
|
|
|
uuid = models.UUIDField(default=uuid.uuid4, editable=False, unique=True)
|
2024-09-06 19:50:19 -04:00
|
|
|
public_profile = models.BooleanField(default=False)
|
2024-08-11 09:06:53 -04:00
|
|
|
|
2024-07-08 11:44:39 -04:00
|
|
|
def __str__(self):
|
|
|
|
return self.username
|