(self, *, raise_exception=False)
| 1176 | ]) |
| 1177 | |
| 1178 | def is_valid(self, *, raise_exception=False): |
| 1179 | super().is_valid() |
| 1180 | value = cache.get(get_key(self.data.get("email") + ":" + self.data.get("type")), version=version) |
| 1181 | if value is None or value != self.data.get("code"): |
| 1182 | raise ExceptionCodeConstants.CODE_ERROR.value.to_app_api_exception() |
| 1183 | return True |
| 1184 | |
| 1185 | |
| 1186 | class SwitchLanguageSerializer(serializers.Serializer): |
nothing calls this directly
no test coverage detected