jrief / django-admin-sortable2

Generic drag-and-drop ordering for objects in the Django admin interface
https://django-admin-sortable2.readthedocs.io/en/latest/
Other
770 stars 180 forks source link

change_list.html: fix compress command of django-compressor #370

Open PetrDlouhy opened 1 year ago

PetrDlouhy commented 1 year ago

The django-compress raises following errors during run of compress management command and also compilescss command of django-sass-processor:

# python manage.py compress
Compressing...
Error parsing template adminsortable2/change_list.html: Invalid template name in 'extends' tag: ''. Got this from the 'base_change_list_template' variable.
jrief commented 1 year ago

and also compilescss command of django-sass-processor:

but django-sass-processor only issues a warning, or do I miss something here?

Does django-compressor abort its job after encountering that template?

PetrDlouhy commented 1 year ago

@jrief You are right. Those are just warnings, but they are a bit annoying and can hide more serious issues. This simple fix would get rid of them.