diff options
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/forms.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/fatcat_web/forms.py b/python/fatcat_web/forms.py index b3073fb9..206c5087 100644 --- a/python/fatcat_web/forms.py +++ b/python/fatcat_web/forms.py @@ -344,6 +344,9 @@ class FileEntityForm(EntityEditForm): """ for simple_attr in FILE_SIMPLE_ATTRS: a = getattr(self, simple_attr).data + # be flexible about hash capitalization + if simple_attr in ('md5', 'sha1', 'sha256'): + a = a.lower() # special case blank strings if a == '': a = None |