Commits

Andrew Godwin  committed cf2da50

Fix #462 (datamigration crashing on migration dir init)

  • Participants
  • Parent commits 16ad6c4

Comments (0)

Files changed (1)

File south/management/commands/datamigration.py

             self.error("You must provide an app to create a migration for.\n" + self.usage_str)
         
         # Get the Migrations for this app (creating the migrations dir if needed)
-        try:
-            migrations = Migrations(app)
-        except NoMigrations:
-            Migrations.create_migrations_directory(app, verbose=verbosity > 0)
-            migrations = Migrations(app)
+        migrations = Migrations(app, force_creation=True, verbose_creation=verbosity > 0)
         
         # See what filename is next in line. We assume they use numbers.
         new_filename = migrations.next_filename(name)