Remove comments

This commit is contained in:
Keannu Bernasol 2024-01-06 12:15:22 +08:00
parent c34876fb49
commit 5f4aac696e

View file

@ -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