Commit 016c66b8 authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

models: Add connection parameter for HashField.db_type.

This is required by django-1.4.
Signed-off-by: default avatarJeremy Kerr <>
parent 700768a3
......@@ -180,7 +180,7 @@ class HashField(models.CharField):
kwargs['max_length'] = self.n_bytes
super(HashField, self).__init__(*args, **kwargs)
def db_type(self):
def db_type(self, connection=None):
return 'char(%d)' % self.n_bytes
class PatchMbox(MIMENonMultipart):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment