removed slugs entirely, since their only purpose was purely cosmetic anyway.

This commit is contained in:
jonaswinkler
2020-12-09 00:04:37 +01:00
parent 1357ee83a0
commit ba7bf9b2d2
9 changed files with 55 additions and 36 deletions

View File

@@ -136,7 +136,7 @@ def set_tags(sender,
message = 'Tagging "{}" with "{}"'
logger(
message.format(document, ", ".join([t.slug for t in relevant_tags])),
message.format(document, ", ".join([t.name for t in relevant_tags])),
logging_group
)
@@ -165,7 +165,7 @@ def run_post_consume_script(sender, document, **kwargs):
reverse("document-download", kwargs={"pk": document.pk}),
reverse("document-thumb", kwargs={"pk": document.pk}),
str(document.correspondent),
str(",".join(document.tags.all().values_list("slug", flat=True)))
str(",".join(document.tags.all().values_list("name", flat=True)))
)).wait()