From cb1a6b86b48cfffbb5cf34dbfa0dde0c92c25a99 Mon Sep 17 00:00:00 2001 From: Wolf-Bastian Poettner Date: Mon, 17 Feb 2020 21:02:37 +0000 Subject: [PATCH] Ensure explicit use of field name --- src/documents/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/models.py b/src/documents/models.py index 19f11336d..4929ea459 100644 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -312,7 +312,7 @@ class Document(models.Model): mylist = list() for t in field.all(): - mylist.append(slugify(t)) + mylist.append(slugify(t.name)) return mylist