[1.7.x] Added database migration for contrib.auth.

refs #22170.

Backport of b341f33697 from master
This commit is contained in:
Tim Graham 2014-06-16 15:59:24 -04:00
parent 6a937cc0a4
commit d36b54d753
5 changed files with 75 additions and 4 deletions

View file

@ -130,8 +130,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',
}