Commits

joke2k  committed a76ee9c

fix syncdb.py --no-initial-data option support

  • Participants
  • Parent commits 9521637
  • Branches joke2k/fix-syncdbpy-noinitialdata-option-suppor-1371312229825

Comments (0)

Files changed (1)

File south/management/commands/syncdb.py

         if options.get('migrate', True):
             if verbosity:
                 print("Migrating...")
+            # convert from store_true to store_false
+            options['no_initial_data'] = not options['load_initial_data']
  1. shaib

    syncdb has only gained its "--no-initial-data" (and with it, "load_initial_data" in its options) with Django 1.5. This breaks south's syncdb command on Django<=1.4

             management.call_command('migrate', **options)
         
         # Be obvious about what we did