Make member's street address optional
This commit is contained in:
parent
890fa996af
commit
0dd7e5a00e
|
@ -110,9 +110,9 @@ class MemberSerializer(serializers.ModelSerializer):
|
|||
crop = serializers.CharField(write_only=True, required=False)
|
||||
email = fields.UserEmailField(serializers.EmailField)
|
||||
phone = serializers.CharField()
|
||||
street_address = serializers.CharField()
|
||||
city = serializers.CharField()
|
||||
postal_code = serializers.CharField()
|
||||
street_address = serializers.CharField(required=False)
|
||||
city = serializers.CharField(required=False)
|
||||
postal_code = serializers.CharField(required=False)
|
||||
|
||||
class Meta:
|
||||
model = models.Member
|
||||
|
|
|
@ -397,9 +397,6 @@ def gen_member_forms(member):
|
|||
can.drawString(34, 683, data['first_name'])
|
||||
can.drawString(218, 683, data['last_name'])
|
||||
can.drawString(403, 683, data['preferred_name'])
|
||||
can.drawString(34, 654, data['street_address'])
|
||||
can.drawString(275, 654, data['city'])
|
||||
can.drawString(459, 654, data['postal_code'])
|
||||
can.drawString(34, 626, data['email'])
|
||||
can.drawString(332, 626, data['phone'])
|
||||
can.drawString(34, 570, data['emergency_contact_name'])
|
||||
|
|
Loading…
Reference in New Issue
Block a user