mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Simplified the assignment of the IS_GRAPPELLI_INSTALLED variable
This commit is contained in:
parent
ff6043d2b3
commit
8a621e9d14
1 changed files with 1 additions and 1 deletions
|
|
@ -10,4 +10,4 @@ MEDIA_PATH = getattr(settings, 'EDITOR_MEDIA_PATH', '%seditor/' % STATIC_URL)
|
|||
|
||||
TREE_INITIAL_STATE = getattr(settings, 'EDITOR_TREE_INITIAL_STATE', 'collapsed')
|
||||
|
||||
IS_GRAPPELLI_INSTALLED = True if 'grappelli' in settings.INSTALLED_APPS else False
|
||||
IS_GRAPPELLI_INSTALLED = 'grappelli' in settings.INSTALLED_APPS
|
||||
|
|
|
|||
Loading…
Reference in a new issue