Creation of Circuit Termination in a script #18269
Unanswered
aascedu
asked this question in
Help Wanted!
Replies: 1 comment
-
https://github.com/netbox-community/netbox/blob/v4.1.10/netbox/circuits/models/circuits.py#L232-L236 It's implied in the Django ORM that if you have a foreign key "circuit", then the auto-generated column name is "circuit_id"
The unique index is only on
|
Beta Was this translation helpful? Give feedback.
0 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.
-
Hello, I am trying to import circuit termination and I have this error because of duplicate elements :
However I don't see a "circuit_id" in the source code of netbox models for CircuitTermination.
Also, it is very weird that I get this type of error because I use .exists() before creating it like so :
I also used .count(), and it was the same results...
The behavior is not usual so I would be tempted to say this is an issue/bug but my impostor syndrome takes over so I'd rather say it is a poor programming error originating from my side. Thanks for any help ! Merry Xmas
Beta Was this translation helpful? Give feedback.
All reactions