mirror of
https://github.com/django/django.git
synced 2025-08-19 02:01:29 +00:00
[1.7.x] Added database migration for contrib.auth.
refs #22170.
Backport of b341f33697
from master
This commit is contained in:
parent
6a937cc0a4
commit
d36b54d753
5 changed files with 75 additions and 4 deletions
|
@ -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',
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue