Hi Prabhu,
You are correct about how to fix the error you're seeing, but I think
you're confused about why you're seeing it. As with all
relationships,
an object in a many-to-many relationship must have a primary key value
before you can point a foreign key value at it from another table.
When
Hi All,
When I try to create a Group (django.contrib.auth.models.Group)
dynamically, I get the below error.
'Group' instance needs to have a primary key value before a many-to-
many relationship can be used.
This is because I am trying to add permissions to the group object and
trying to save e
2 matches
Mail list logo