Generate search strings on new member signup
This commit is contained in:
parent
517854198f
commit
f07781afe6
|
@ -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'
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user