Ensure all models have a native ordering defined #2567

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

Originally created by @jeremystretch on GitHub (Apr 30, 2019).

Proposed Changes

Ensure that all models across all apps have at least one field specified for their default ordering.

Justification

This was prompted by #3127, which occurred because several device component models lack a Meta.ordering.

Note that modifying the ordering of a model will generate a database migration. It's probably best to wait until after the v2.6 release to avoid introducing additional work. (#3127 has been resolved without a migration.)

Originally created by @jeremystretch on GitHub (Apr 30, 2019). ### Proposed Changes Ensure that all models across all apps have at least one field specified for their default ordering. ### Justification This was prompted by #3127, which occurred because several device component models lack a `Meta.ordering`. Note that modifying the ordering of a model will generate a database migration. It's probably best to wait until after the v2.6 release to avoid introducing additional work. (#3127 has been resolved without a migration.)
adam added the status: acceptedtype: housekeeping labels 2025-12-29 18:20:01 +01:00
adam closed this issue 2025-12-29 18:20:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2567