[Answer]-ManyToMany Relation using Django

1👍

First of all you need to save attribute1 = Atrib(atrib = atribs)
do attribute1.save()

Next, after Attribute object creation you don’t have Dictionary object related to it.
You need to create it first, set it to this object and then you will have ability to operations you want.

Note: to access attribute.dict you need OneToOne relationship, not ForeignKey.

Leave a comment