Skip to content

Commit

Permalink
refactor(in_person): use class variable instead of magical string
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Sep 24, 2024
1 parent 531a2a8 commit 545af5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benefits/in_person/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class InPersonEligibilityForm(forms.Form):

def __init__(self, agency: models.TransitAgency, *args, **kwargs):
super().__init__(*args, **kwargs)
flows = agency.enrollment_flows.filter(supported_enrollment_methods__contains="in_person")
flows = agency.enrollment_flows.filter(supported_enrollment_methods__contains=models.EnrollmentMethods.IN_PERSON)

self.classes = "checkbox-parent"
flow_field = self.fields["flow"]
Expand Down

0 comments on commit 545af5d

Please sign in to comment.