Skip to content

Commit

Permalink
AVATAR_CLEANUP_DELETED default True, relates to #181
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswilm committed Aug 14, 2022
1 parent 2ced4c0 commit 1dd9933
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion avatar/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1dd9933

Please sign in to comment.