Duplicate device name, different site triggers uniqueness error #4415
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Environment
Steps to Reproduce
Expected Behavior
Create D1 in S2 successfully
Observed Behavior
Validation Error: "A device with this name already exists"
Reason
In validate_unique() on the device model, we are suppose to be looking for a device assigned to the same site with no tenant. However, we are not setting the site and instead only looking for a duplicate name.
Fix
The text was updated successfully, but these errors were encountered: