Skip to content
Discussion options

You must be logged in to vote

Tag assignments are a many-to-many relationship, wherein a separate table is used to track each tag assignment to an object, so these work a bit differently from concrete model fields. To assign tags, use the add() or set() method on the manager:

ip_obj.tags.add(tag_obj)

You can find complete documentation of the available methods in the django-taggit docs. Hope that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@julianstolp
Comment options

Answer selected by julianstolp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants