Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1.         if value is None:
  2.             value = ''
  3.  
  4.         # cast integers to str cuz EncryptedCharField works with strings
  5.         if not isinstance(value, basestring):
  6.             value = str(value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement