Created
June 28, 2018 10:32
-
-
Save cypreess/2ab571b340d524ec13c0dd5e4afe5318 to your computer and use it in GitHub Desktop.
Easily disable migratinons when testing in your django project, set `MIGRATION_MODULES = DisableMigrations()`in settings.py
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
class DisableMigrations(object): | |
def __contains__(self, item): | |
return True | |
def __getitem__(self, item): | |
return None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment