diff --git a/apiserver/apiserver/api/utils.py b/apiserver/apiserver/api/utils.py index 87ee843..9f74c5f 100644 --- a/apiserver/apiserver/api/utils.py +++ b/apiserver/apiserver/api/utils.py @@ -404,7 +404,8 @@ def register_user(data, user): 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' diff --git a/apiserver/apiserver/api/views.py b/apiserver/apiserver/api/views.py index ba1f42e..f71d2d0 100644 --- a/apiserver/apiserver/api/views.py +++ b/apiserver/apiserver/api/views.py @@ -173,12 +173,6 @@ class MemberViewSet(Base, Retrieve, Update): else: 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): member = serializer.save() utils.tally_membership_months(member)