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

This commit is contained in:
Jeremy Stretch 2023-10-30 10:08:13 -04:00
parent 30ce9edf1c
commit ad56723ce7
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 4.2.6 on 2023-10-30 14:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('extras', '0098_webhook_custom_field_data_webhook_tags'),
]
operations = [
migrations.AlterModelOptions(
name='cachedvalue',
options={'ordering': ('weight', 'object_type', 'value', 'object_id')},
),
]

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')