diff options
author | Carl Meyer <carl@oddbird.net> | 2014-11-22 22:29:23 -0700 |
---|---|---|
committer | Carl Meyer <carl@oddbird.net> | 2014-11-22 22:29:23 -0700 |
commit | bcb693ebd4d3743cb194c6fd05b2d70fb9696a4c (patch) | |
tree | f32e2fd8c6152f9c5ad2b198f18f77b0fdac59c5 /django/contrib/postgres/validators.py | |
parent | f36151ed169813f2873e13ca9de616cfa4095321 (diff) | |
download | django-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/validators.py')
-rw-r--r-- | django/contrib/postgres/validators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/validators.py b/django/contrib/postgres/validators.py index 22ac10074f..19d0a69765 100644 --- a/django/contrib/postgres/validators.py +++ b/django/contrib/postgres/validators.py @@ -30,7 +30,7 @@ class KeysValidator(object): } strict = False - def __init__(self, keys, strict=False, messages=None, **kwargs): + def __init__(self, keys, strict=False, messages=None): self.keys = set(keys) self.strict = strict if messages is not None: |