summaryrefslogtreecommitdiff
path: root/django/core/management/commands/loaddata.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-03-11 15:43:42 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-03-11 15:43:42 +0100
commit3f1efc44f65604a3e6bc09aba3dbfb649d3e966e (patch)
treefb6aa0d51826c0ca5d597d34f081c8db9a228e69 /django/core/management/commands/loaddata.py
parent14cddf51c5f001bb426ce7f7a83fdc52c8d8aee9 (diff)
Fixed loaddata command, broken in the previous merge.
Diffstat (limited to 'django/core/management/commands/loaddata.py')
-rw-r--r--django/core/management/commands/loaddata.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/core/management/commands/loaddata.py b/django/core/management/commands/loaddata.py
index 8aa40cf021..c95d11cf60 100644
--- a/django/core/management/commands/loaddata.py
+++ b/django/core/management/commands/loaddata.py
@@ -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: