mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-05-05 06:04:46 +00:00
linting
This commit is contained in:
parent
465e64cc1e
commit
d23542f880
1 changed files with 0 additions and 2 deletions
|
|
@ -124,7 +124,6 @@ class Avatar(models.Model):
|
|||
avatars.delete()
|
||||
super(Avatar, self).save(*args, **kwargs)
|
||||
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
base_filepath = avatar_path_handler(instance=self)
|
||||
# delete base file
|
||||
|
|
@ -139,7 +138,6 @@ class Avatar(models.Model):
|
|||
self.avatar.storage.delete(resized_filepath)
|
||||
super(Avatar, self).delete(*args, **kwargs)
|
||||
|
||||
|
||||
def thumbnail_exists(self, size):
|
||||
return self.avatar.storage.exists(self.avatar_name(size))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue