Added database migration for contrib.auth.

refs #22170.
This commit is contained in:
Tim Graham 2014-06-16 15:59:24 -04:00
parent a96dbda6d3
commit b341f33697
5 changed files with 75 additions and 4 deletions

View file

@ -129,8 +129,9 @@ def setup(verbosity, test_labels):
# Ensure the middleware classes are seen as overridden otherwise we get a compatibility warning.
settings._explicit_settings.add('MIDDLEWARE_CLASSES')
settings.MIGRATION_MODULES = {
# this module doesn't actually exist, but this lets us skip creating
# migrations for the test modules for some reason.
# these 'tests.migrations' modules don't actually exist, but this lets
# us skip creating migrations for the test models.
'auth': 'django.contrib.auth.tests.migrations',
'contenttypes': 'django.contrib.contenttypes.tests.migrations',
}