Skip to content
Discussion options

You must be logged in to vote

'tags' is some sort of Django ORM manager object. Try:

bac_circuit.tags.set([Tag.objects.get(name="BACKUP")])

or

bac_circuit.tags.set(["BACKUP"])

I'm reasonably sure the first will work, not sure about the second.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@el-magneto
Comment options

Answer selected by el-magneto
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants