Skip to content

Commit

Permalink
add unfold to ignored admin dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed Aug 30, 2024
1 parent 5161720 commit 0e3acd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions django_distill/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,11 @@ def filter_dirs(dirs):
DISTILL_SKIP_ADMIN_DIRS = bool(getattr(settings, 'DISTILL_SKIP_ADMIN_DIRS', True))
_ignore_dirs = []
if DISTILL_SKIP_ADMIN_DIRS:
_ignore_dirs.append('admin')
_ignore_dirs.append('grappelli')
_ignore_dirs = [
'admin',
'grappelli',
'unfold',
]
try:
DISTILL_SKIP_STATICFILES_DIRS = list(getattr(settings, 'DISTILL_SKIP_STATICFILES_DIRS', []))
except (ValueError, TypeError):
Expand Down

0 comments on commit 0e3acd8

Please sign in to comment.