mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #2938: Enforce deterministic ordering of device components returned by API
This commit is contained in:
@@ -27,7 +27,7 @@ class DeviceComponentManager(Manager):
|
||||
select={
|
||||
'name_padded': sql.format(table_name, table_name),
|
||||
}
|
||||
).order_by('name_padded')
|
||||
).order_by('name_padded', 'pk')
|
||||
|
||||
|
||||
class InterfaceQuerySet(QuerySet):
|
||||
|
Reference in New Issue
Block a user