mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Fixed loaddata command, broken in the previous merge.
This commit is contained in:
parent
14cddf51c5
commit
3f1efc44f6
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue