-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bulk upload of Location fails; parent uniqueness check not limited to site #14064
Comments
Can anyone please assign this issue to me ? |
@kprince28 have you made any progress on this? |
@jeremystretch I am currently contemplating the best approach to resolve the issue. The error seems to originate from Django's side. |
@kprince28 ok, I'm going to open this back up for a new owner in case someone else would like to work on it. If you reach the point where you have a PR ready for review, please let me know and I'll reassign it to you. |
NetBox version
v3.6.4
Python version
3.10
Steps to Reproduce
Site A
Site B
Floor 1
inSite A
with slugfloor-1
Floor 1
inSite B
with slugfloor-1
Floor 1
inSite A
Expected Behavior
A new Location,
Loc A
, with a parent location ofFloor 1
in siteSite B
should have been importedObserved Behavior
It appears the query for locations to check for duplicates is not limiting to the defined Site. Instead, the following error is returned:
Record 1 parent: "Floor 1" is not a unique value for this field; multiple objects were found
The text was updated successfully, but these errors were encountered: