mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
AVATAR_CLEANUP_DELETED default True, relates to #181
This commit is contained in:
parent
2ced4c06e7
commit
1dd993358b
3 changed files with 5 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue