Skip to content

Commit

Permalink
orders court stations by name
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed Jul 4, 2024
1 parent ac58ed7 commit 7f5990c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions peachjam/migrations/0145_alter_courtregistry_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 3.2.25 on 2024-07-04 14:37

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("peachjam", "0144_gazette_special"),
]

operations = [
migrations.AlterModelOptions(
name="courtregistry",
options={
"ordering": ("name",),
"verbose_name": "court registry",
"verbose_name_plural": "court registries",
},
),
]
1 change: 1 addition & 0 deletions peachjam/models/judgment.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class CourtRegistry(models.Model):
code = models.SlugField(_("code"), max_length=255, null=False, unique=True)

class Meta:
ordering = ("name",)
verbose_name = _("court registry")
verbose_name_plural = _("court registries")
unique_together = ("court", "name")
Expand Down

0 comments on commit 7f5990c

Please sign in to comment.