Fixed loaddata command, broken in the previous merge.

This commit is contained in:
Aymeric Augustin 2013-03-11 15:43:42 +01:00
parent 14cddf51c5
commit 3f1efc44f6
1 changed files with 2 additions and 0 deletions

View File

@ -116,8 +116,10 @@ class Command(BaseCommand):
if sequence_sql:
if self.verbosity >= 2:
self.stdout.write("Resetting sequences\n")
cursor = connection.cursor()
for line in sequence_sql:
cursor.execute(line)
cursor.close()
if self.verbosity >= 1:
if self.fixture_object_count == self.loaded_object_count: