Make some member details optional for admin PATCH
This commit is contained in:
parent
c9c0145bbb
commit
7d2f99072f
|
@ -154,6 +154,11 @@ class MemberSerializer(serializers.ModelSerializer):
|
||||||
|
|
||||||
# admin viewing member details
|
# admin viewing member details
|
||||||
class AdminMemberSerializer(MemberSerializer):
|
class AdminMemberSerializer(MemberSerializer):
|
||||||
|
phone = serializers.CharField(required=False)
|
||||||
|
street_address = serializers.CharField(required=False)
|
||||||
|
city = serializers.CharField(required=False)
|
||||||
|
postal_code = serializers.CharField(required=False)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = models.Member
|
model = models.Member
|
||||||
fields = '__all__'
|
fields = '__all__'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user