Fixed loaddata command, broken in the previous merge.
This commit is contained in:
parent
14cddf51c5
commit
3f1efc44f6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue