Skip to content

Instantly share code, notes, and snippets.

@cypreess
Created June 28, 2018 10:32
Show Gist options
  • Save cypreess/2ab571b340d524ec13c0dd5e4afe5318 to your computer and use it in GitHub Desktop.
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
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