Commit 6f513ad3 authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

Import hashlib in HashField.db_type

Signed-off-by: default avatarJeremy Kerr <>
parent 0521d8b2
......@@ -192,6 +192,7 @@ class HashField(models.Field):
def db_type(self):
if self.hashlib:
import hashlib
n_bytes = len(
n_bytes = len(self.hash_constructor().digest())
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