[PR #20892] [MERGED] Fixes #20888: Fix warnings about non-decimal values for min/max latitude & longitude fields #16082

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20892
Author: @jeremystretch
Created: 11/26/2025
Status: Merged
Merged: 12/1/2025
Merged by: @arthanson

Base: mainHead: 20888-min-max-decimal-warnings


📝 Commits (1)

  • 5a0f2dd Fixes #20888: Pass decimal values for min/max on latitude and longitude fields

📊 Changes

3 files changed (+28 additions, -12 deletions)

View changed files

📝 netbox/dcim/migrations/0216_latitude_longitude_validators.py (+10 -8)
📝 netbox/dcim/models/devices.py (+8 -2)
📝 netbox/dcim/models/sites.py (+10 -2)

📄 Description

Fixes: #20888

Cast min/max values for validators as Decimal to avoid DRF warnings.


🔄 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/20892 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 11/26/2025 **Status:** ✅ Merged **Merged:** 12/1/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `20888-min-max-decimal-warnings` --- ### 📝 Commits (1) - [`5a0f2dd`](https://github.com/netbox-community/netbox/commit/5a0f2dd1530297bca2a41b2f8b89d6343f9dfb7c) Fixes #20888: Pass decimal values for min/max on latitude and longitude fields ### 📊 Changes **3 files changed** (+28 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/migrations/0216_latitude_longitude_validators.py` (+10 -8) 📝 `netbox/dcim/models/devices.py` (+8 -2) 📝 `netbox/dcim/models/sites.py` (+10 -2) </details> ### 📄 Description ### Fixes: #20888 Cast min/max values for validators as Decimal to avoid DRF warnings. --- <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:41 +01:00
adam closed this issue 2025-12-30 00:25:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16082