Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

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

Open
eomanis opened this issue Jun 21, 2020 · 0 comments
Open

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

eomanis opened this issue Jun 21, 2020 · 0 comments

Comments

@eomanis
Copy link

eomanis commented Jun 21, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant