From e26ca71e42734a9c9f2aed8265a24ddfd3bd5184 Mon Sep 17 00:00:00 2001 From: Ali Maktabi Date: Mon, 26 Aug 2024 14:50:03 +0330 Subject: [PATCH] fixed arguments passing for is_valid --- authentication/serializers.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/authentication/serializers.py b/authentication/serializers.py index 503e77d..976c337 100644 --- a/authentication/serializers.py +++ b/authentication/serializers.py @@ -46,7 +46,7 @@ class Meta: fields = ["pk", "wallet_type", "address", "signature", "message"] def is_valid(self, raise_exception=False): - super_is_validated = super().is_valid(raise_exception) + super_is_validated = super().is_valid(raise_exception=raise_exception) address = self.validated_data.get("address") message = self.validated_data.get("message") @@ -208,8 +208,8 @@ class Meta: ] def is_valid(self, raise_exception=False): - super_is_validated = super().is_valid(raise_exception) - is_address_valid = self.validate_address(raise_exception) + super_is_validated = super().is_valid(raise_exception=raise_exception) + is_address_valid = self.validate_address(raise_exception=raise_exception) return is_address_valid and super_is_validated @@ -237,7 +237,7 @@ class Meta: ] def is_valid(self, raise_exception=False): - super_is_validated = super().is_valid(raise_exception) + super_is_validated = super().is_valid(raise_exception=raise_exception) is_address_valid = self.validate_address(raise_exception) return is_address_valid and super_is_validated @@ -255,7 +255,7 @@ class Meta: ] def is_valid(self, raise_exception=False): - super_is_validated = super().is_valid(raise_exception) + super_is_validated = super().is_valid(raise_exception=raise_exception) is_address_valid = self.validate_address(raise_exception) return is_address_valid and super_is_validated @@ -273,7 +273,7 @@ class Meta: ] def is_valid(self, raise_exception=False): - super_is_validated = super().is_valid(raise_exception) + super_is_validated = super().is_valid(raise_exception=raise_exception) is_address_valid = self.validate_address(raise_exception) return is_address_valid and super_is_validated