Generate member forms on unpause and import
This commit is contained in:
parent
7eb46f39db
commit
6789090ba2
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user