From 5f4aac696e89eba3b7bdab0fe07c165c863fdc51 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sat, 6 Jan 2024 12:15:22 +0800 Subject: [PATCH] Remove comments --- backend/accounts/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/accounts/models.py b/backend/accounts/models.py index 2e2d03b..be96577 100644 --- a/backend/accounts/models.py +++ b/backend/accounts/models.py @@ -19,7 +19,6 @@ class CustomUser(AbstractUser): null=True, upload_to='avatars/') def avatar_url(self): - # Assuming your media root is set to 'media/' return f'/api/v1/media/avatars/{self.avatar.name}' @property @@ -31,7 +30,6 @@ class CustomUser(AbstractUser): return reverse('admin:users_customuser_change', args=(self.pk,)) def get_prep_value(self, value): - # Get the original filename without the random string original_filename = self.avatar.field.storage.name(self.avatar.path) return original_filename pass