Fixed verbosity check in installing initial data
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3676 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0e577430e9
commit
f89b9c8654
|
@ -501,7 +501,8 @@ def syncdb(verbosity=2, interactive=True):
|
|||
if model in created_models:
|
||||
initial_sql = get_sql_initial_data_for_model(model)
|
||||
if initial_sql:
|
||||
print "Installing initial data for %s model" % model._meta.object_name
|
||||
if verbosity >= 2:
|
||||
print "Installing initial data for %s model" % model._meta.object_name
|
||||
try:
|
||||
for sql in initial_sql:
|
||||
cursor.execute(sql)
|
||||
|
|
Loading…
Reference in New Issue