2👍
You need to do:
bug= bugtraq.objects.get(id="12345")
ref_row = References(title="Mozilla Firefox")
ref_row.save()
ref_row.bugId.add(bug)
To set ManyToMany
relationship, you need to do .add()
.
Source:stackexchange.com
2👍
You need to do:
bug= bugtraq.objects.get(id="12345")
ref_row = References(title="Mozilla Firefox")
ref_row.save()
ref_row.bugId.add(bug)
To set ManyToMany
relationship, you need to do .add()
.