From 15f2d87ceb6c981d88c988f002e4f0f6743b0dd9 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Tue, 5 Sep 2017 12:20:05 +0200 Subject: [PATCH] Removed unneeded __init__() in PostgreSQL DatabaseWrapper. --- django/db/backends/postgresql/base.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index ad1fd0fd0b..0e4263dd0b 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -139,10 +139,8 @@ class DatabaseWrapper(BaseDatabaseWrapper): features_class = DatabaseFeatures introspection_class = DatabaseIntrospection ops_class = DatabaseOperations - - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - self._named_cursor_idx = 0 + # PostgreSQL backend-specific attributes. + _named_cursor_idx = 0 def get_connection_params(self): settings_dict = self.settings_dict