mirror of
https://github.com/django/django.git
synced 2025-04-01 12:06:43 +00:00
[1.8.x] Fixed #24299 -- Added an auth migration to ensure contenttypes is migrated.
Without this migration, the auth signal handlers will fail if migrating only auth. Backport of 4538cbf17d4391cda22d76bc6ac69f228f7400f2 from master
This commit is contained in:
parent
906d682ba0
commit
77e3f7dd58
@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('auth', '0005_alter_user_last_login_null'),
|
||||
('contenttypes', '0002_remove_content_type_name'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
# Ensure the contenttypes migration is applied before sending
|
||||
# post_migrate signals (which create ContentTypes).
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user