Skip to content

Commit

Permalink
Merge branch 'main' into feat/Tapis-v3-redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
jarosenb authored Apr 29, 2024
2 parents 3a567a7 + bef0c44 commit a36b08c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
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"
)
),
]
},
),
]
6 changes: 3 additions & 3 deletions designsafe/apps/workspace/models/app_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""

from django.db import models
from django.db.models.functions import Coalesce
from django.db.models.functions import Coalesce, Lower

APP_ICONS = [
("Generic-App", "Generic: Application"),
Expand Down Expand Up @@ -147,7 +147,7 @@ class Meta:
)
]

ordering = ["-is_popular", "label"]
ordering = ["-is_popular", Lower("label")]


class AppVariant(models.Model):
Expand Down Expand Up @@ -232,4 +232,4 @@ class Meta:
)
]

ordering = ["priority", Coalesce("label", "app_id")]
ordering = ["priority", Lower(Coalesce("label", "app_id"))]

0 comments on commit a36b08c

Please sign in to comment.