[PR #20590] [MERGED] Fixes #20585: Fix AttributeError exception for conditionless single-field UniqueConstraints #15975

Closed
opened 2025-12-30 00:25:06 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20590
Author: @jeremystretch
Created: 10/15/2025
Status: Merged
Merged: 10/15/2025
Merged by: @jnovinger

Base: mainHead: 20585-UniqueConstraint-exception


📝 Commits (1)

  • 8645a1c Fixes #20585: Fix AttributeError exception for conditionless single-field UniqueConstraints

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 netbox/netbox/monkey.py (+1 -1)

📄 Description

Fixes: #20585

Tweak logic in the monkey patch to handle UniqueConstraints without a condition.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/20590 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/15/2025 **Status:** ✅ Merged **Merged:** 10/15/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `main` ← **Head:** `20585-UniqueConstraint-exception` --- ### 📝 Commits (1) - [`8645a1c`](https://github.com/netbox-community/netbox/commit/8645a1c7086bb516f221391cbf6ad047cfab495d) Fixes #20585: Fix AttributeError exception for conditionless single-field UniqueConstraints ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/monkey.py` (+1 -1) </details> ### 📄 Description ### Fixes: #20585 Tweak logic in the monkey patch to handle UniqueConstraints without a condition. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:25:06 +01:00
adam closed this issue 2025-12-30 00:25:06 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15975