forked from kiwitcms/Kiwi
-
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.
Refs kiwitcms#1774. Play around with restoring non-nullable BugSystem…
… fields in case the migration is applied backwards NOTES: - Can't use obj.serialize() b/c apps.get_model() retruns a fake class, not the real one. Fields are there but methods aren't. - Use Serializer(model=...).serialize_model() instead - ^^^ doesn't fail on previous migrations b/c the respective tables are empty during test! Will fail as soon as we have some records inside of them - Make `validate_reg_exp` and `url_reg_exp` fields nullable before removing them so that in the reverse direction the values could be restored and finally the fields set to NOT NULL once again!
- Loading branch information
Showing
1 changed file
with
43 additions
and
39 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