def to_python(self, value):
    if isinstance(value, DecryptedString):
        return value
decrypted = self.encrypter.decrypt(encrypted)
How can I create an encrypted django field that converts data when it's retrieved from the database?