code: def get_prep_value(self, value):
          
          value = super(NullBooleanPGPPublicKeyField, self).get_prep_value(value)
          if value is None:
              return None
          return "%s" % bool(value)
docs: Before encryption, need to prepare values.