AVATAR_CLEANUP_DELETED default True, relates to #181

This commit is contained in:
Johannes Wilm 2022-08-14 13:00:53 +02:00
parent 2ced4c06e7
commit 1dd993358b
3 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,9 @@
Changelog
=========
* Unreleased
* Made ``True`` the default value of ``AVATAR_CLEANUP_DELETED``. (Set to ``False`` to obtain previous behavior).
* 6.0.1 (August 12, 2022)
* Exclude tests folder from distribution.

View file

@ -24,7 +24,7 @@ class AvatarConf(AppConf):
ALLOWED_FILE_EXTS = None
CACHE_TIMEOUT = 60 * 60
STORAGE = settings.DEFAULT_FILE_STORAGE
CLEANUP_DELETED = False
CLEANUP_DELETED = True
AUTO_GENERATE_SIZES = (DEFAULT_SIZE,)
FACEBOOK_GET_ID = None
CACHE_ENABLED = True

View file

@ -233,7 +233,7 @@ appear on the site. Listed below are those settings:
.. py:data:: AVATAR_CLEANUP_DELETED
``True`` if the avatar image files should be deleted when an avatar is
deleted from the database. Defaults to ``False``.
deleted from the database. Defaults to ``True``.
.. py:data:: AVATAR_ADD_TEMPLATE