diff --git a/django/core/management/commands/syncdb.py b/django/core/management/commands/syncdb.py
index 0f21130..c2e5f41 100644
|
a
|
b
|
class Command(NoArgsCommand):
|
| 15 | 15 | help='Verbosity level; 0=minimal output, 1=normal output, 2=all output'), |
| 16 | 16 | make_option('--noinput', action='store_false', dest='interactive', default=True, |
| 17 | 17 | help='Tells Django to NOT prompt the user for input of any kind.'), |
| | 18 | make_option('--ignore-initial', action='store_true', dest='ignore_initial', default=False, |
| | 19 | help='Tells Django NOT load the initial_data fixture.'), |
| 18 | 20 | ) |
| 19 | 21 | help = "Create the database tables for all apps in INSTALLED_APPS whose tables haven't already been created." |
| 20 | 22 | |
| … |
… |
class Command(NoArgsCommand):
|
| 25 | 27 | |
| 26 | 28 | verbosity = int(options.get('verbosity', 1)) |
| 27 | 29 | interactive = options.get('interactive') |
| | 30 | ignore_initial = options.get('ignore_initial') |
| 28 | 31 | |
| 29 | 32 | self.style = no_style() |
| 30 | 33 | |
| … |
… |
class Command(NoArgsCommand):
|
| 132 | 135 | transaction.rollback_unless_managed() |
| 133 | 136 | else: |
| 134 | 137 | transaction.commit_unless_managed() |
| 135 | | |
| 136 | | # Install the 'initial_data' fixture, using format discovery |
| 137 | | from django.core.management import call_command |
| 138 | | call_command('loaddata', 'initial_data', verbosity=verbosity) |
| | 138 | if not ignore_initial: |
| | 139 | # Install the 'initial_data' fixture, using format discovery |
| | 140 | from django.core.management import call_command |
| | 141 | call_command('loaddata', 'initial_data', verbosity=verbosity) |