diff mbox

[3/3] fields: Stub out unused arguments

Message ID BLU436-SMTP11292A1E58F567BEECFCC57A3F80@phx.gbl
State Accepted
Headers show

Commit Message

Stephen Finucane Sept. 7, 2016, 9:03 p.m. UTC
Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
---
 patchwork/fields.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Finucane Sept. 19, 2016, 11:23 p.m. UTC | #1
On 07 Sep 22:03, Stephen Finucane wrote:
> Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>

Trivial fix. Merged.
diff mbox

Patch

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):