django-avatar/avatar
Rafiq Hilali 8017d6fc4c
Delete avatars from file storage when avatar is deleted (#174)
* added custom delete method to Avatar model inorder to delete avatars from file storage

* simplified chained expression to pass linting

* linting

* stopped using reserved keyword dir

* changed remove_avatar_images so it deletes all generated avatars

* went back to using queryset delete

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: Johannes Wilm <mail@johanneswilm.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-14 13:03:45 +02:00
..
locale compile translation files, replaces #192 2022-08-09 23:24:52 +02:00
management lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00
media/avatar/img Moved default.jpg to reflect the community standard for media files 2010-02-22 18:19:08 -05:00
migrations lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00
templates [pre-commit.ci] auto fixes from pre-commit.com hooks 2022-08-10 15:45:56 +00:00
templatetags Merge branch 'main' into tmploverride 2022-08-10 17:45:47 +02:00
__init__.py 6.0.1 2022-08-12 07:23:26 +02:00
admin.py lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00
apps.py black 2022-07-16 22:50:05 +02:00
conf.py AVATAR_CLEANUP_DELETED default True, relates to #181 2022-08-14 13:00:53 +02:00
forms.py lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00
models.py Delete avatars from file storage when avatar is deleted (#174) 2022-08-14 13:03:45 +02:00
providers.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2022-08-10 15:45:56 +00:00
signals.py lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00
urls.py black 2022-07-16 22:50:05 +02:00
utils.py lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00
views.py lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00