Permalink
Browse files

Fixed loaddata command, broken in the previous merge.

  • Loading branch information...
1 parent 14cddf5 commit 3f1efc44f65604a3e6bc09aba3dbfb649d3e966e @aaugustin aaugustin committed Mar 11, 2013
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:

0 comments on commit 3f1efc4

Please sign in to comment.