-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default deleted if the instance from BuildRequest is not having it
We should already have the rehydrated instance having the deleted field being set. That field is also a BooleanField type, so we should never try to cast it from an integer (even if we support it). Instead, we need to make sure that if the field is not set for any reason (mostly because an Instance wasn't persisted before we persisted the BuildRequest object that was nesting it), then we would default the deleted field to False. Change-Id: I828191f750a5978fed65a86e797388d11042b4a0 Related-Bug: #1644513
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
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