Skip to content

Commit

Permalink
As of django-filer 3.0 mptt is not needed as a dependency #224 (#226)
Browse files Browse the repository at this point in the history
* Update utils.py


---------

Co-authored-by: Fabian Braun <fsbraun@gmx.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
3 people authored Jul 9, 2023
1 parent 195e4a6 commit 9009a86
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app_helper/utils.py
Original file line number Diff line number Diff line change
@@ -238,7 +238,11 @@ def _make_settings(args, application, settings, STATIC_ROOT, MEDIA_ROOT): # NOQ
if "treebeard" not in default_settings["INSTALLED_APPS"]:
default_settings["INSTALLED_APPS"].append("treebeard")
if "filer" in default_settings["INSTALLED_APPS"] and "mptt" not in default_settings["INSTALLED_APPS"]:
default_settings["INSTALLED_APPS"].append("mptt")
from filer import __version__

if __version__ < "3":
# As of django-filer 3.0 mptt is not needed as a dependency
default_settings["INSTALLED_APPS"].append("mptt")
if "filer" in default_settings["INSTALLED_APPS"] and "easy_thumbnails" not in default_settings["INSTALLED_APPS"]:
default_settings["INSTALLED_APPS"].append("easy_thumbnails")

1 change: 1 addition & 0 deletions changes/225.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Do not add mptt with django-filer 3+

0 comments on commit 9009a86

Please sign in to comment.