summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql_psycopg2/operations.py
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2011-04-05 00:19:17 +0000
committerRamiro Morales <cramm0@gmail.com>2011-04-05 00:19:17 +0000
commit30b3d51599aed4cf08ccace9ba5b1277ded78439 (patch)
tree3e91bd79429af35f30871440383ba6efad16f260 /django/db/backends/postgresql_psycopg2/operations.py
parent71bf169ab1e91415b731158e6b5ba929111742dd (diff)
downloaddjango-30b3d51599aed4cf08ccace9ba5b1277ded78439.tar.gz
Fixed #13630 -- Made __init__ methods of all DB backends' DatabaseOperations classes take a `connection` argument. Thanks calexium for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16016 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/postgresql_psycopg2/operations.py')
-rw-r--r--django/db/backends/postgresql_psycopg2/operations.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/db/backends/postgresql_psycopg2/operations.py b/django/db/backends/postgresql_psycopg2/operations.py
index 537fa45981..4efdb8fa3e 100644
--- a/django/db/backends/postgresql_psycopg2/operations.py
+++ b/django/db/backends/postgresql_psycopg2/operations.py
@@ -5,9 +5,8 @@ from django.db.backends import BaseDatabaseOperations
class DatabaseOperations(BaseDatabaseOperations):
def __init__(self, connection):
- super(DatabaseOperations, self).__init__()
+ super(DatabaseOperations, self).__init__(connection)
self._postgres_version = None
- self.connection = connection
def _get_postgres_version(self):
if self._postgres_version is None: