Generate search strings on new member signup

This commit is contained in:
Tanner Collin 2022-05-25 04:40:35 +00:00
parent 517854198f
commit f07781afe6
2 changed files with 2 additions and 7 deletions

View File

@ -404,7 +404,8 @@ def register_user(data, user):
if data['request_id']: utils_stats.set_progress(data['request_id'], 'Done!') if data['request_id']: utils_stats.set_progress(data['request_id'], 'Done!')
time.sleep(1)
gen_search_strings()
BLANK_FORM = 'misc/blank_member_form.pdf' BLANK_FORM = 'misc/blank_member_form.pdf'

View File

@ -173,12 +173,6 @@ class MemberViewSet(Base, Retrieve, Update):
else: else:
return serializers.MemberSerializer return serializers.MemberSerializer
def perform_create(self, serializer):
member = serializer.save()
utils.tally_membership_months(member)
utils.gen_member_forms(member)
utils.gen_search_strings()
def perform_update(self, serializer): def perform_update(self, serializer):
member = serializer.save() member = serializer.save()
utils.tally_membership_months(member) utils.tally_membership_months(member)