Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if value is None:
- value = ''
- # cast integers to str cuz EncryptedCharField works with strings
- if not isinstance(value, basestring):
- value = str(value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement