Commits

Andrew Godwin committed c1a9f39

And make sure those options are actually picked up.

  • Participants
  • Parent commits 3803313

Comments (0)

Files changed (1)

File south/management/commands/convert_to_south.py

             make_option('--verbosity', action='store', dest='verbosity', default='1',
                 type='choice', choices=['0', '1', '2'],
                 help='Verbosity level; 0=minimal output, 1=normal output, 2=all output'),
-            make_option('--delete-ghost-migrations', action='store_true', dest='delete_ghosts', default=False,
-                help="Tells South to delete any 'ghost' migrations (ones in the database but not on disk)."),
-            make_option('--ignore-ghost-migrations', action='store_true', dest='ignore_ghosts', default=False,
-                help="Tells South to ignore any 'ghost' migrations (ones in the database but not on disk) and continue to apply new migrations."), 
         )
+    option_list += (
+        make_option('--delete-ghost-migrations', action='store_true', dest='delete_ghosts', default=False,
+            help="Tells South to delete any 'ghost' migrations (ones in the database but not on disk)."),
+        make_option('--ignore-ghost-migrations', action='store_true', dest='ignore_ghosts', default=False,
+            help="Tells South to ignore any 'ghost' migrations (ones in the database but not on disk) and continue to apply new migrations."), 
+    )
 
     help = "Quickly converts the named application to use South if it is currently using syncdb."