From 034bcaf7ff2cc15fbd1900845215b575882c7740 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 26 Nov 2024 22:37:12 +0000 Subject: [PATCH] fix(models): don't call clean from another model 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 --- benefits/core/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/benefits/core/models.py b/benefits/core/models.py index 64a097587d..8ff4dad0aa 100644 --- a/benefits/core/models.py +++ b/benefits/core/models.py @@ -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(