modlinltd/django-advanced-filters

Error when using django compressor

vitormhenrique opened this issue · 1 comments

Describe the bug
Getting the following error when using compressor with django advanced filters:

Compressing... Error parsing template /Users/vitormhenrique/opt/anaconda3/envs/sr/lib/python3.8/site-packages/advanced_filters/templates/admin/advanced_filters.html: Invalid template name in 'extends' tag: ''. Got this from the 'original_change_list_template' variable.

To Reproduce
Using django cookiecutter with whitenoise compressor.

Steps to reproduce the behavior:

  1. Installed the app as described with a blank cookiecutter
  2. run python manage.py collectstatic and them run python manage.py compress

Expected behavior
Should not get the error

Details (please complete the following information):

  • OS: LINUX / MAXOS
  • Python version 3.7
  • Django version 3.0

Made a PR to fix the issue with compressor: #189