Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed loaddata command, broken in the previous merge.

  • Loading branch information...
commit 3f1efc44f65604a3e6bc09aba3dbfb649d3e966e 1 parent 14cddf5
@aaugustin aaugustin authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/core/management/commands/loaddata.py
View
2  django/core/management/commands/loaddata.py
@@ -116,8 +116,10 @@ def read(self):
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:
Please sign in to comment.
Something went wrong with that request. Please try again.