Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.5.x] Fixed cursor commit command in PostGIS backend

Thanks Bruno Renié for noticing the error.
Backport of 7b9a1fb from master.
  • Loading branch information...
commit 56f8e4b79c0559e1df5bf262a8ad73fc471d234c 1 parent d46b24e
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/gis/db/backends/postgis/creation.py
View
2  django/contrib/gis/db/backends/postgis/creation.py
@@ -91,6 +91,6 @@ def _create_test_db(self, verbosity, autoclobber):
self.connection.settings_dict["NAME"] = test_database_name
cursor = self.connection.cursor()
cursor.execute("CREATE EXTENSION postgis")
- cursor.commit()
+ cursor.connection.commit()
return test_database_name
Please sign in to comment.
Something went wrong with that request. Please try again.