-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quick: Fix case sensitive ordering of apps (#1220)
* fix is_popular ordering * fix: case insensitive app label ordering
- Loading branch information
1 parent
5a2dc84
commit bef0c44
Showing
2 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
designsafe/apps/workspace/migrations/0012_alter_applistingentry_options_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Generated by Django 4.2.11 on 2024-04-29 19:23 | ||
|
||
from django.db import migrations | ||
import django.db.models.functions.comparison | ||
import django.db.models.functions.text | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("workspace", "0011_alter_applistingentry_options"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="applistingentry", | ||
options={ | ||
"ordering": [ | ||
"-is_popular", | ||
django.db.models.functions.text.Lower("label"), | ||
], | ||
"verbose_name_plural": "App Listing Entries", | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name="appvariant", | ||
options={ | ||
"ordering": [ | ||
"priority", | ||
django.db.models.functions.text.Lower( | ||
django.db.models.functions.comparison.Coalesce( | ||
"label", "app_id" | ||
) | ||
), | ||
] | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters