Ticket #15926: ticket15926.patch

File ticket15926.patch, 1.3 KB (added by msiedlarek, 14 years ago)

Patch

  • django/core/management/commands/syncdb.py

    diff --git a/django/core/management/commands/syncdb.py b/django/core/management/commands/syncdb.py
    index a5228a1..228baca 100644
    a b class Command(NoArgsCommand):  
    1414    option_list = NoArgsCommand.option_list + (
    1515        make_option('--noinput', action='store_false', dest='interactive', default=True,
    1616            help='Tells Django to NOT prompt the user for input of any kind.'),
     17        make_option('--no-initial-data', action='store_false', dest='load_initial_data', default=True,
     18            help='Tells Django not to load any initial data after database synchronization.'),
    1719        make_option('--database', action='store', dest='database',
    1820            default=DEFAULT_DB_ALIAS, help='Nominates a database to synchronize. '
    1921                'Defaults to the "default" database.'),
    class Command(NoArgsCommand):  
    2527        verbosity = int(options.get('verbosity', 1))
    2628        interactive = options.get('interactive')
    2729        show_traceback = options.get('traceback', False)
    28 
    29         # Stealth option -- 'load_initial_data' is used by the testing setup
    30         # process to disable initial fixture loading.
    3130        load_initial_data = options.get('load_initial_data', True)
    3231
    3332        self.style = no_style()
Back to Top