Skip to content

Commit

Permalink
fixed arguments passing for is_valid
Browse files Browse the repository at this point in the history
  • Loading branch information
alimaktabi committed Aug 26, 2024
1 parent 7b953cf commit e26ca71
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions authentication/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit e26ca71

Please sign in to comment.