1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #14035: Order global search results of equivalent weight by value (#14140)

This commit is contained in:
Jeremy Stretch
2023-11-01 11:56:14 -04:00
committed by GitHub
parent 77208bf5f3
commit c2d1988cb3
2 changed files with 18 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ class CachedValue(models.Model):
)
class Meta:
ordering = ('weight', 'object_type', 'object_id')
ordering = ('weight', 'object_type', 'value', 'object_id')
verbose_name = _('cached value')
verbose_name_plural = _('cached values')