Skip to content

Commit

Permalink
Merge pull request #2031 from laws-africa/outcomes-fix
Browse files Browse the repository at this point in the history
use outcomes__name not outcomes__code
  • Loading branch information
longhotsummer authored Sep 14, 2024
2 parents ea5ee96 + 51d4cd8 commit 4f8fc35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peachjam/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def filter_queryset(self, queryset, exclude=None, filter_q=False):
queryset = queryset.filter(attorneys__name__in=attorneys).distinct()

if outcomes and exclude != "outcomes":
queryset = queryset.filter(outcomes__code__in=outcomes).distinct()
queryset = queryset.filter(outcomes__name__in=outcomes).distinct()

if taxonomies and exclude != "taxonomies":
queryset = queryset.filter(taxonomies__topic__slug__in=taxonomies)
Expand Down

0 comments on commit 4f8fc35

Please sign in to comment.