ManytoMany field on prefix model #10551
andy-shady-org
started this conversation in
General
Replies: 1 comment 2 replies
-
This indicates that you're trying to save a many-to-many relationship between objects before one of the objects itself has been saved. Have a read through this page in the Django docs for some examples of how to work with M2M relationships. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When I build a many to many relationship on Prefix model, I get the following error:
... "X needs to have a value for field "id" before this many-to-many relationship can be used."
However, when I build a many to many relationship on IPAddress or VRF models, I dont get this error.
Works:
Does not work:
Is there any reason for this?
Thanks
Andy
Beta Was this translation helpful? Give feedback.
All reactions