Make member's street address optional

This commit is contained in:
Tanner Collin 2020-08-08 23:53:05 +00:00
parent 890fa996af
commit 0dd7e5a00e
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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'])