the-paperless-project / paperless

Scan, index, and archive all of your paper documents
GNU General Public License v3.0
7.85k stars 499 forks source link

TemplateSyntaxError on Django 3 when e.g. mass-tagging documents #683

Open eomanis opened 4 years ago

eomanis commented 4 years ago

Paperless 2.7.0 uses a Django feature that was removed with Django 3.

This causes an application server error when attempting to mass-edit documents, for example here with the "Add tag to selected documents" action:

---- (Excerpt from the debug error page) ----

Error during template rendering

In template /usr/share/webapps/paperless/src/documents/templates/admin/documents/document/select_object.html, error at line 5

'staticfiles' is not a registered tag library. Must be one of: admin_list admin_modify (...) static (...)

     1 {% extends "admin/base_site.html" %}
     2
     3
     4 {% load i18n l10n admin_urls static %}
 ->  5 {% load staticfiles %}
     6

---- (End excerpt) ----

Going from this answer it seems as if the offending line 5 could be dropped, because static is already loaded in line 4.

This is on Arch Linux using the paperless AUR package, paperless-2.7.0-1.