django-advanced-filters icon indicating copy to clipboard operation
django-advanced-filters copied to clipboard

Error when using django compressor

Open vitormhenrique opened this issue 4 years ago • 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

vitormhenrique avatar Jul 27 '21 16:07 vitormhenrique

Made a PR to fix the issue with compressor: https://github.com/modlinltd/django-advanced-filters/pull/189

vitormhenrique avatar Oct 20 '23 17:10 vitormhenrique