From: Stephen Finucane Date: Wed, 7 Sep 2016 21:03:49 +0000 (+0100) Subject: fields: Stub out unused arguments X-Git-Tag: v2.0.0-rc1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08f00f1ba5d4d02eb9b0af2cfc35f563428a117f;p=thirdparty%2Fpatchwork.git fields: Stub out unused arguments Signed-off-by: Stephen Finucane --- diff --git a/patchwork/fields.py b/patchwork/fields.py index c0a1b4d8..6c000c0f 100644 --- a/patchwork/fields.py +++ b/patchwork/fields.py @@ -46,7 +46,7 @@ class HashField(HashFieldBase): value = value.encode('utf-8') return hashlib.sha1(value) - def from_db_value(self, value, expression, connection, context): + def from_db_value(self, value, *args, **kwargs): return self.to_python(value) def db_type(self, connection=None):