-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(models): invert clean, catch and rethrow ValidationError
TransitAgency cleans all of its associated EnrollmentFlows, to ensure that an agency doesn't go live with partially configured flows since TransitAgency won't have fields from EnrollmentFlow, any ValidationError that bubbles would raise a new error in Django Admin instead, catch and rethrow a ValidationError indicating the problem flow
- Loading branch information
1 parent
bfde2e5
commit 6f0ed51
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters