summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/operations.py
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2014-11-22 22:29:23 -0700
committerCarl Meyer <carl@oddbird.net>2014-11-22 22:29:23 -0700
commitbcb693ebd4d3743cb194c6fd05b2d70fb9696a4c (patch)
treef32e2fd8c6152f9c5ad2b198f18f77b0fdac59c5 /django/contrib/postgres/operations.py
parentf36151ed169813f2873e13ca9de616cfa4095321 (diff)
downloaddjango-bcb693ebd4d3743cb194c6fd05b2d70fb9696a4c.tar.gz
Revert "Fixed #23892 -- Made deconstructible classes forwards compatible"
This reverts commit f36151ed169813f2873e13ca9de616cfa4095321. Adding kwargs to deconstructed objects does not achieve useful forward-compatibility in general, since additional arguments are silently dropped rather than having their intended effect. In fact, it can make the failure more difficult to diagnose. Thanks Shai Berger for discussion.
Diffstat (limited to 'django/contrib/postgres/operations.py')
-rw-r--r--django/contrib/postgres/operations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/postgres/operations.py b/django/contrib/postgres/operations.py
index 2d22c313b9..e39d63ffa0 100644
--- a/django/contrib/postgres/operations.py
+++ b/django/contrib/postgres/operations.py
@@ -5,7 +5,7 @@ from django.db.migrations.operations.base import Operation
class CreateExtension(Operation):
reversible = True
- def __init__(self, name, **kwargs):
+ def __init__(self, name):
self.name = name
def state_forwards(self, app_label, state):
@@ -23,7 +23,7 @@ class CreateExtension(Operation):
class HStoreExtension(CreateExtension):
- def __init__(self, **kwargs):
+ def __init__(self):
self.name = 'hstore'
def database_forwards(self, app_label, schema_editor, from_state, to_state):