1
0
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:
Jeremy Stretch
2019-02-28 09:49:23 -05:00
parent beff774295
commit 32f63a18ff
2 changed files with 2 additions and 1 deletions

View File

@@ -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):