-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2374] Set employment group default in pre_save not post_save
Employments are forced to have a non-null group, though the model does allow null values, by trying to set a default group in the post_save. But, this can fail if such an employment already exists, thus creating an employment with a null group. Multiple such employments with a null group can get created, too. This commit moves the setting of the group to the pre_save signal, thus preventing an invalid employment from getting created. Closes #2374, Closes #2122
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 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