Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix incompatibility with Python versions < 3.6

Erik Arvstedt48738dab9f67
diff --git a/src/documents/templatetags/hacks.py b/src/documents/templatetags/hacks.py
index 4faf1783f..0c0a0e099 100644
--- a/src/documents/templatetags/hacks.py
+++ b/src/documents/templatetags/hacks.py
@@ -38,6 +38,6 @@ def add_doc_edit_url(result):
"""
title = result[1]
match = re.search(EXTRACT_URL, title)
- edit_doc_url = match[1]
+ edit_doc_url = match.group(1)
result.append(edit_doc_url)
return result