Skip to content

Commit ffee67b

Browse files
committed
don't require benefit internal value for inline benefits
1 parent 6704290 commit ffee67b

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

sponsors/forms.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,6 @@ class SponsorBenefitAdminInlineForm(forms.ModelForm):
376376

377377
def __init__(self, *args, **kwargs):
378378
super().__init__(*args, **kwargs)
379-
if "benefit_internal_value" in self.fields:
380-
self.fields["benefit_internal_value"].required = True
381379

382380
class Meta:
383381
model = SponsorBenefit

sponsors/tests/test_forms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ def setUp(self):
401401
def test_required_fields_for_new_sponsor_benefit(self):
402402
required_fields = [
403403
"sponsorship",
404-
"benefit_internal_value",
405404
]
406405

407406
form = SponsorBenefitAdminInlineForm({})

0 commit comments

Comments
 (0)