Skip to content

Commit

Permalink
avoid redundant admin notification
Browse files Browse the repository at this point in the history
fixes #1143
  • Loading branch information
jennyq committed Dec 5, 2022
1 parent 233779c commit 8c64981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tendenci/apps/memberships/views.py
Expand Up @@ -1587,7 +1587,7 @@ def membership_default_add(request, slug='', membership_id=None,
else:
is_renewal = membership.is_renewal()
membership.approve(request_user=customer)
membership.send_email(request, ('approve_renewal' if is_renewal else 'approve'))
notice_sent = membership.send_email(request, ('approve_renewal' if is_renewal else 'approve'))

# application complete
membership.application_complete_dt = datetime.now()
Expand Down

0 comments on commit 8c64981

Please sign in to comment.