1
0
mirror of https://github.com/django/django.git synced 2025-03-06 07:22:32 +00:00

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

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: