Generate member forms on unpause and import

This commit is contained in:
Tanner Collin 2020-01-26 22:17:05 +00:00
parent 7eb46f39db
commit 6789090ba2
2 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,7 @@ class MemberViewSet(Base, Retrieve, Update):
member.paused_date = None
member.save()
utils.tally_membership_months(member)
utils.gen_member_forms(member)
return Response(200)

View File

@ -142,6 +142,7 @@ for m in members:
import_date = datetime.date(2020, 1, 3)
tx, _ = utils.fake_missing_membership_months(m)
utils.tally_membership_months(m, import_date)
utils.gen_member_forms(m)
if tx:
print(m.first_name, m.last_name, tx.memo)