Skip to content

Commit

Permalink
adds lower court judges
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed Feb 29, 2024
1 parent 673b233 commit f65531d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions peachjam/migrations/0120_judgment_lower_court_judges.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.21 on 2024-02-29 14:24

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("peachjam", "0119_matomo"),
]

operations = [
migrations.AddField(
model_name="judgment",
name="lower_court_judges",
field=models.ManyToManyField(
blank=True,
related_name="lower_court_judgments",
to="peachjam.Judge",
verbose_name="lower court judges",
),
),
]
6 changes: 6 additions & 0 deletions peachjam/models/judgment.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ class Judgment(CoreDocument):
judges = models.ManyToManyField(
Judge, blank=True, verbose_name=_("judges"), through=Bench
)
lower_court_judges = models.ManyToManyField(
Judge,
blank=True,
verbose_name=_("lower court judges"),
related_name="lower_court_judgments",
)
attorneys = models.ManyToManyField(
Attorney, blank=True, verbose_name=_("attorneys")
)
Expand Down

0 comments on commit f65531d

Please sign in to comment.