Skip to content
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

Fixes #17810: Fix assignment of device to rack via REST API without specifying position/face #18108

Closed
wants to merge 1 commit into from

Conversation

jeremystretch
Copy link
Member

Fixes: #17810

This applies some conditions to the unique constraint on the Device model, which prevents DRF from raising a validation error when rack is set but position is not.

@jeremystretch
Copy link
Member Author

Holding on this for now as we investigate a related issue (#18132) which may require a similar fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't place multiple devices in rack with non-racked device (using API)
2 participants