So I have this page:
http://hub.iis.sinica.edu.tw/cytoHubba/
Apparently it\'s all kinds of messed up, as it gets decoded properly but when I try to save it in po
To solve my similar problems with django/postgress I now do something like this
class SafeTextField(models.TextField)
def get_prep_value(self, value):
encoded = base64.encodestring(value).strip()
return super(SafeTextField, self).get_prep_value(encoded)
def to_python(self, value):
decoded = base64.decodestring(value)
return super(SafeTextField, self).to_python(decoded)