Skip to content

Commit

Permalink
fix: send notification to self (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben authored Nov 30, 2024
1 parent 29b6008 commit bcfc9ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions LedenAdministratie/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ def send_notification(self, form, recipients):
def form_valid(self, form):
if "self" in form.cleaned_data["recipients"]:
self.send_email(form, [self.request.user.email])
self.send_notification(form, [self.request.user.id])

recipients = Member.objects.filter(
Q(afmeld_datum__gt=date.today()) | Q(afmeld_datum=None)
Expand Down

0 comments on commit bcfc9ef

Please sign in to comment.