Ticket #25618: django-south-bug-fix.diff

File django-south-bug-fix.diff, 1.1 KB (added by David Filipovic, 8 years ago)
  • django/db/migrations/loader.py

    diff --git a/django/db/migrations/loader.py b/django/db/migrations/loader.py
    index 923202a..45e8f55 100644
    a b class MigrationLoader(object):  
    117117                    break
    118118                self.disk_migrations[app_config.label, migration_name] = migration_module.Migration(migration_name, app_config.label)
    119119            if south_style_migrations:
     120                if app_config.label in self.migrated_apps:
     121                    raise BadMigrationError(
     122                        "Migrated app %s contains south migrations. "
     123                        "Make sure all numbered south migrations are deleted prior to running the "
     124                        "django migration system. For more information see: "
     125                        "https://docs.djangoproject.com/en/1.7/topics/migrations/#upgrading-from-south"
     126                        % app_config.label
     127                    )
    120128                self.unmigrated_apps.add(app_config.label)
    121129
    122130    def get_migration(self, app_label, name_prefix):
Back to Top