Skip to content

Commit

Permalink
Fixed #24299 -- Added an auth migration to ensure contenttypes is mig…
Browse files Browse the repository at this point in the history
…rated.

Without this migration, the auth signal handlers will fail if migrating
only auth.
  • Loading branch information
timgraham committed Feb 16, 2015
1 parent f3bc7c5 commit 4538cbf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 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).
]

0 comments on commit 4538cbf

Please sign in to comment.