Django-voting: what is the right way of appending tags
-
29-09-2019 - |
문제
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
해결책
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
제휴하지 않습니다 StackOverflow