-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correct related name on order outcomes
otherwise we get this error when indexing after updating order outcome names: File "/app/peachjam_search/documents.py", line 177, in get_instances_from_related return related_instance.judgments.all() AttributeError: 'OrderOutcome' object has no attribute 'judgments'
- Loading branch information
1 parent
ae6c7e1
commit c21fe58
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
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,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" | ||
), | ||
), | ||
] |
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