Update models.py

Checking if class instantiation is required
This commit is contained in:
soh55 2023-07-06 23:37:35 -05:00
parent fdb98d5c43
commit fc8251edbd

View file

@ -82,7 +82,7 @@ class AvatarField(models.ImageField):
self.max_length = 1024
self.upload_to = avatar_file_path
self.storage = avatar_storage
self.storage = avatar_storage()
self.blank = True
def deconstruct(self):