Skip to content

Commit

Permalink
Merge pull request #1942 from laws-africa/fix-alpha
Browse files Browse the repository at this point in the history
fix alphabet filter
  • Loading branch information
actlikewill authored Jul 30, 2024
2 parents c5fdae7 + 28f64b1 commit c00fea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions peachjam/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class BaseDocumentFilterForm(forms.Form):
"""

years = PermissiveTypedListField(coerce=int, required=False)
alphabet = PermissiveTypedListField(required=False)
alphabet = forms.CharField(required=False)
authors = PermissiveTypedListField(coerce=remove_nulls, required=False)
doc_type = PermissiveTypedListField(coerce=remove_nulls, required=False)
judges = PermissiveTypedListField(coerce=remove_nulls, required=False)
Expand Down Expand Up @@ -140,7 +140,7 @@ def __init__(self, defaults, data, *args, **kwargs):

def filter_queryset(self, queryset, exclude=None, filter_q=False):
years = self.cleaned_data.get("years", [])
alphabet = self.cleaned_data.get("alphabet", [])
alphabet = self.cleaned_data.get("alphabet")
authors = self.cleaned_data.get("authors", [])
courts = self.cleaned_data.get("courts", [])
doc_type = self.cleaned_data.get("doc_type", [])
Expand Down

0 comments on commit c00fea7

Please sign in to comment.