Skip to content

Commit

Permalink
Replace management command with DisableMigrations MIGRATION_MODULES
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Jan 4, 2025
1 parent 5eca8cd commit 5826ea2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
9 changes: 9 additions & 0 deletions app/app/settings/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,12 @@
'NAME': ':memory:',
}
}

class DisableMigrations(object):
def __contains__(self, _):
return True

def __getitem__(self, _):
return "notmigrations"

MIGRATION_MODULES = DisableMigrations()
Empty file removed app/labs/management/__init__.py
Empty file.
Empty file.
15 changes: 0 additions & 15 deletions app/labs/management/commands/runserver_quiet.py

This file was deleted.

0 comments on commit 5826ea2

Please sign in to comment.