Add address and minor fields to member in API and client

This commit is contained in:
2020-01-13 03:18:41 +00:00
parent f50a3ca129
commit bd3146f413
6 changed files with 102 additions and 95 deletions
+10
View File
@@ -19,6 +19,12 @@ MEMBER_FIELDS = [
'monthly_fees',
'emergency_contact_name',
'emergency_contact_phone',
# minor -> is_minor
'birthdate',
'guardian_name',
'street_address',
# city, provice -> city
'postal_code',
]
TRANSACTION_FIELDS = [
@@ -83,6 +89,10 @@ for o in old:
for f in MEMBER_FIELDS:
new[f] = o.__dict__.get(f, None)
if o.city and o.province:
new['city'] = '{}, {}'.format(o.city, o.province)
new['is_minor'] = o.minor
small, medium, large = None, None, None
if str(o.id) in photo_folders:
folder = 'old_photos/' + str(o.id)