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