[Bugfix] 修复一些bug

This commit is contained in:
ibuler
2018-07-31 11:00:48 +08:00
parent 23815f87c5
commit 672dd66023
4 changed files with 4 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ class EncryptMixin:
def get_prep_value(self, value):
if value is None:
return value
return signer.sign(value).decode('utf-8')
return signer.sign(value)
class EncryptTextField(EncryptMixin, models.TextField):