modlinltd / django-advanced-filters

Add advanced filtering abilities to Django admin
https://pypi.org/project/django-advanced-filters/
MIT License
763 stars 169 forks source link

Error when using django compressor #149

Open vitormhenrique opened 3 years ago

vitormhenrique commented 3 years ago

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):

vitormhenrique commented 9 months ago

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