[PATCH 3/3] fields: Stub out unused arguments
Stephen Finucane
stephenfinucane at hotmail.com
Thu Sep 8 07:03:49 AEST 2016
Signed-off-by: Stephen Finucane <stephenfinucane at hotmail.com>
---
patchwork/fields.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/patchwork/fields.py b/patchwork/fields.py
index c0a1b4d..6c000c0 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):
--
2.7.4
More information about the Patchwork
mailing list