Skip to content

Commit

Permalink
fix partial update other phone
Browse files Browse the repository at this point in the history
  • Loading branch information
RignonNoel committed Oct 3, 2020
1 parent 5c5faf9 commit ee38eae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blitz_api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ def validate_phone(self, value):
return value

def validate_other_phone(self, value):
return phone_number_validator(value)
if value is not None:
return phone_number_validator(value)
return value

def validate(self, attrs):
"""Validate university and email match"""
Expand Down

0 comments on commit ee38eae

Please sign in to comment.