Skip to content

Commit

Permalink
fix(models): don't call clean from another model
Browse files Browse the repository at this point in the history
since the calling model won't have fields from the called model
any validation errors that bubble will cause additional errors
in the Django Admin
  • Loading branch information
thekaveman committed Nov 26, 2024
1 parent bfde2e5 commit 034bcaf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions benefits/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,6 @@ def clean(self):
field_errors.update(reenrollment_error_template=ValidationError("Required when supports expiration is True."))

if self.transit_agency and self.transit_agency.active:
self.transit_agency.clean()

if self.claims_provider:
message = "Required for claims verification."
needed = dict(
Expand Down

0 comments on commit 034bcaf

Please # to comment.