mirror of https://github.com/django/django.git
Added check to prevent sequence reset if no fixtures are loaded.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9350945963
commit
41fbd35613
|
@ -1405,6 +1405,7 @@ def load_data(fixture_labels, verbosity=1):
|
||||||
print "No %s fixture '%s' in %s." % \
|
print "No %s fixture '%s' in %s." % \
|
||||||
(format, fixture_name, humanize(fixture_dir))
|
(format, fixture_name, humanize(fixture_dir))
|
||||||
|
|
||||||
|
if count[0] > 0:
|
||||||
sequence_sql = backend.get_sql_sequence_reset(style, models)
|
sequence_sql = backend.get_sql_sequence_reset(style, models)
|
||||||
if sequence_sql:
|
if sequence_sql:
|
||||||
if verbosity > 1:
|
if verbosity > 1:
|
||||||
|
|
Loading…
Reference in New Issue