[PR #3929] [MERGED] Fixes #3830: Update model ordering parameters to ensure deterministic ordering #12703

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3929
Author: @jeremystretch
Created: 1/15/2020
Status: Merged
Merged: 1/15/2020
Merged by: @jeremystretch

Base: develop-2.7Head: 3830-api-pagination


📝 Commits (2)

📊 Changes

9 files changed (+129 additions, -14 deletions)

View changed files

📝 docs/release-notes/version-2.7.md (+4 -0)
netbox/dcim/migrations/0089_deterministic_ordering.py (+21 -0)
📝 netbox/dcim/models/__init__.py (+3 -2)
netbox/extras/migrations/0035_deterministic_ordering.py (+29 -0)
📝 netbox/extras/models.py (+5 -4)
netbox/ipam/migrations/0033_deterministic_ordering.py (+42 -0)
📝 netbox/ipam/models.py (+7 -7)
netbox/virtualization/migrations/0013_deterministic_ordering.py (+17 -0)
📝 netbox/virtualization/models.py (+1 -1)

📄 Description

Fixes: #3830

Extend the Meta.ordering on each model where necessary to ensure its native queryset always includes deterministic ordering.


🔄 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/3929 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/15/2020 **Status:** ✅ Merged **Merged:** 1/15/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.7` ← **Head:** `3830-api-pagination` --- ### 📝 Commits (2) - [`28350d8`](https://github.com/netbox-community/netbox/commit/28350d84f92f9f3c19a9df788354a64a2fe04ad6) Update model ordering parameters to ensure deterministic ordering - [`c5ec470`](https://github.com/netbox-community/netbox/commit/c5ec470a00a489135843b21cdddce264ec52b1d4) Changelog for #3830 ### 📊 Changes **9 files changed** (+129 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-2.7.md` (+4 -0) ➕ `netbox/dcim/migrations/0089_deterministic_ordering.py` (+21 -0) 📝 `netbox/dcim/models/__init__.py` (+3 -2) ➕ `netbox/extras/migrations/0035_deterministic_ordering.py` (+29 -0) 📝 `netbox/extras/models.py` (+5 -4) ➕ `netbox/ipam/migrations/0033_deterministic_ordering.py` (+42 -0) 📝 `netbox/ipam/models.py` (+7 -7) ➕ `netbox/virtualization/migrations/0013_deterministic_ordering.py` (+17 -0) 📝 `netbox/virtualization/models.py` (+1 -1) </details> ### 📄 Description ### Fixes: #3830 Extend the `Meta.ordering` on each model where necessary to ensure its native queryset always includes deterministic ordering. --- <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 22:23:08 +01:00
adam closed this issue 2025-12-29 22:23:08 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12703