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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: class Meta:
ordering = ('weight', 'object_type', 'object_id') ordering = ('weight', 'object_type', 'value', 'object_id')
verbose_name = _('cached value') verbose_name = _('cached value')
verbose_name_plural = _('cached values') verbose_name_plural = _('cached values')