mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.9.x] Fixed #25618 -- Added a helpful error message when Django & south migrations exist in the same directory.
Forwardport of 65bff161ff from stable/1.8.x
			
			
This commit is contained in:
		| @@ -124,6 +124,12 @@ class MigrationLoader(object): | ||||
|                     app_config.label, | ||||
|                 ) | ||||
|             if south_style_migrations: | ||||
|                 if app_config.label in self.migrated_apps: | ||||
|                     raise BadMigrationError( | ||||
|                         "Migrated app %r contains South migrations. Make sure " | ||||
|                         "all numbered South migrations are deleted prior to " | ||||
|                         "creating Django migrations." % app_config.label | ||||
|                     ) | ||||
|                 self.unmigrated_apps.add(app_config.label) | ||||
|  | ||||
|     def get_migration(self, app_label, name_prefix): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user