Created
September 2, 2015 17:36
-
-
Save pricco/29e57314328b2aac225e to your computer and use it in GitHub Desktop.
Avoid all migrations for test in django.
This file contains hidden or 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 IgnoreAllMigrations(dict): | |
def __getitem__(self, key): | |
return 'django.migrations_not_used' | |
def __contains__(self, key): | |
return True | |
MIGRATION_MODULES = IgnoreAllMigrations() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment