[PR #20080] [MERGED] Closes #18984: Add status field to Rack model #15819

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20080
Author: @jeremystretch
Created: 8/12/2025
Status: Merged
Merged: 8/12/2025
Merged by: @jnovinger

Base: featureHead: 18984-rack-reservation-status


📝 Commits (1)

📊 Changes

15 files changed (+230 additions, -96 deletions)

View changed files

📝 docs/models/dcim/rackreservation.md (+7 -0)
📝 netbox/dcim/api/serializers_/racks.py (+18 -6)
📝 netbox/dcim/choices.py (+18 -0)
📝 netbox/dcim/filtersets.py (+4 -0)
📝 netbox/dcim/forms/bulk_edit.py (+7 -1)
📝 netbox/dcim/forms/bulk_import.py (+6 -1)
📝 netbox/dcim/forms/filtersets.py (+6 -1)
📝 netbox/dcim/forms/model_forms.py (+2 -2)
netbox/dcim/migrations/0213_rackreservation_status.py (+16 -0)
📝 netbox/dcim/models/racks.py (+9 -0)
📝 netbox/dcim/tables/racks.py (+5 -2)
📝 netbox/dcim/tests/test_api.py (+22 -4)
📝 netbox/dcim/tests/test_filtersets.py (+28 -3)
📝 netbox/dcim/tests/test_views.py (+6 -4)
📝 netbox/templates/dcim/rackreservation.html (+76 -72)

📄 Description

Closes: #18984

  • Add a status ChoiceField and get_status_color() method to dcim.Rack
  • Clean up the rackreservation.html template

🔄 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/20080 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/12/2025 **Status:** ✅ Merged **Merged:** 8/12/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `feature` ← **Head:** `18984-rack-reservation-status` --- ### 📝 Commits (1) - [`b0a6204`](https://github.com/netbox-community/netbox/commit/b0a6204a16cd82b9815d7f3d2f6cea3087e8bcf7) Closes #18984: Add status field to Rack model ### 📊 Changes **15 files changed** (+230 additions, -96 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/dcim/rackreservation.md` (+7 -0) 📝 `netbox/dcim/api/serializers_/racks.py` (+18 -6) 📝 `netbox/dcim/choices.py` (+18 -0) 📝 `netbox/dcim/filtersets.py` (+4 -0) 📝 `netbox/dcim/forms/bulk_edit.py` (+7 -1) 📝 `netbox/dcim/forms/bulk_import.py` (+6 -1) 📝 `netbox/dcim/forms/filtersets.py` (+6 -1) 📝 `netbox/dcim/forms/model_forms.py` (+2 -2) ➕ `netbox/dcim/migrations/0213_rackreservation_status.py` (+16 -0) 📝 `netbox/dcim/models/racks.py` (+9 -0) 📝 `netbox/dcim/tables/racks.py` (+5 -2) 📝 `netbox/dcim/tests/test_api.py` (+22 -4) 📝 `netbox/dcim/tests/test_filtersets.py` (+28 -3) 📝 `netbox/dcim/tests/test_views.py` (+6 -4) 📝 `netbox/templates/dcim/rackreservation.html` (+76 -72) </details> ### 📄 Description ### Closes: #18984 - Add a `status` ChoiceField and `get_status_color()` method to dcim.Rack - Clean up the `rackreservation.html` template --- <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:24:14 +01:00
adam closed this issue 2025-12-30 00:24:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15819