Skip to content
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...
1 parent d46b24e commit 56f8e4b79c0559e1df5bf262a8ad73fc471d234c @claudep claudep committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/db/backends/postgis/
2 django/contrib/gis/db/backends/postgis/
@@ -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

0 comments on commit 56f8e4b

Please sign in to comment.
Something went wrong with that request. Please try again.