This commit is contained in:
Kristofers Solo 2023-06-27 14:03:09 +00:00
parent ffa9827f44
commit 9019c76d5a

View File

@ -14,7 +14,7 @@ def get_profile_pic_path(instance, filename) -> Path:
class User(AbstractUser): class User(AbstractUser):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, verbose_name="ID") id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, verbose_name="ID")
profile_picture = models.ImageField(upload_to=get_profile_pic_path, default=Path("profile_pic", "default.jpg")) profile_picture = models.ImageField(upload_to=get_profile_pic_path, default=Path("profile_pics", "default.jpg"))
@property @property
def full_name(self): def full_name(self):