[PR #12134] [MERGED] DRAFT: 12074 full clean #13908

Closed
opened 2025-12-29 23:21:29 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12134
Author: @arthanson
Created: 3/31/2023
Status: Merged
Merged: 4/3/2023
Merged by: @jeremystretch

Base: developHead: 12074-full-clean


📝 Commits (4)

  • a6070e1 12074 fix full clean
  • 941c4df 12074 move device location setting to save from clean
  • 7225dbf 12074 fix set location only if present in rack
  • 2f0c071 Update base.py

📊 Changes

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

View changed files

📝 netbox/dcim/models/devices.py (+3 -2)

📄 Description

Fixes: #12074

Moves the setting of location from model.clean to model.save, also opened a separate issue #12133 to check the rest of the codebase for other places this is happening.

Note: the location field will get over-ridden if the rack has a location set, but the clean method does a check for this anyways (makes sure if the rack has a location that the set location matches).


🔄 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/12134 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 3/31/2023 **Status:** ✅ Merged **Merged:** 4/3/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `12074-full-clean` --- ### 📝 Commits (4) - [`a6070e1`](https://github.com/netbox-community/netbox/commit/a6070e1aa05819db8ecb411a57709bdc10ead59a) 12074 fix full clean - [`941c4df`](https://github.com/netbox-community/netbox/commit/941c4df9d970fd2c174ceff1698cac929566d7ca) 12074 move device location setting to save from clean - [`7225dbf`](https://github.com/netbox-community/netbox/commit/7225dbf049bf2a0cc186fedcb6db3191aa77a07a) 12074 fix set location only if present in rack - [`2f0c071`](https://github.com/netbox-community/netbox/commit/2f0c071d5f6a7d26d997234d662e16b5f6afb73e) Update base.py ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/models/devices.py` (+3 -2) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #12074 <!-- Please include a summary of the proposed changes below. --> Moves the setting of location from model.clean to model.save, also opened a separate issue #12133 to check the rest of the codebase for other places this is happening. **Note:** the location field will get over-ridden if the rack has a location set, but the clean method does a check for this anyways (makes sure if the rack has a location that the set location matches). --- <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-29 23:21:29 +01:00
adam closed this issue 2025-12-29 23:21:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13908