summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-16 12:53:56 -0500
committerTim Graham <timograham@gmail.com>2015-02-16 14:52:30 -0500
commit4538cbf17d4391cda22d76bc6ac69f228f7400f2 (patch)
treef3136e5e80d64e1ec47c2bae8e854772b1a5bb3f
parentf3bc7c5447a1e4bfa428a7ff32ea3336850c5c2d (diff)
Fixed #24299 -- Added an auth migration to ensure contenttypes is migrated.
Without this migration, the auth signal handlers will fail if migrating only auth.
-rw-r--r--django/contrib/auth/migrations/0006_require_contenttypes_0002.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/django/contrib/auth/migrations/0006_require_contenttypes_0002.py b/django/contrib/auth/migrations/0006_require_contenttypes_0002.py
new file mode 100644
index 0000000000..77c45e70b1
--- /dev/null
+++ b/django/contrib/auth/migrations/0006_require_contenttypes_0002.py
@@ -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).
+ ]