Django-voting: what is the right way of appending tags
-
29-09-2019 - |
Question
i'm starting with django-tagging and I don't understand why update_tags(object, new_tag)
method replaces all existing tags on object
by new_tag
.
What is the proper way to append a tag to the existing tags on an object inside a views?
EDIT: add_tag
function is not satifying becaus it doesn't enables you to add multiple words tags: see this former post
Solution
Use add_tag(object, tag_name)
.
For more information see http://api.rst2a.com/1.0/rst2/html?uri=http://django-tagging.googlecode.com/svn/trunk/docs/overview.txt#api-reference
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow