diff --git a/peachjam/migrations/0123_alter_judgment_order_outcomes.py b/peachjam/migrations/0123_alter_judgment_order_outcomes.py new file mode 100644 index 000000000..6cd898922 --- /dev/null +++ b/peachjam/migrations/0123_alter_judgment_order_outcomes.py @@ -0,0 +1,20 @@ +# Generated by Django 3.2.20 on 2024-03-06 10:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("peachjam", "0122_lower_court_judges"), + ] + + operations = [ + migrations.AlterField( + model_name="judgment", + name="order_outcomes", + field=models.ManyToManyField( + blank=True, related_name="judgments", to="peachjam.OrderOutcome" + ), + ), + ] diff --git a/peachjam/models/judgment.py b/peachjam/models/judgment.py index 42e7ae291..fe93c3dec 100644 --- a/peachjam/models/judgment.py +++ b/peachjam/models/judgment.py @@ -228,6 +228,7 @@ class Judgment(CoreDocument): order_outcomes = models.ManyToManyField( OrderOutcome, blank=True, + related_name="judgments", ) case_summary = models.TextField(_("case summary"), null=True, blank=True) flynote = models.TextField(_("flynote"), null=True, blank=True)