def _get_for_dict(self, entity): value = super(DateTimeProperty, self)._get_for_dict(entity) if not value: return None return value.isoformat()