Skip to content

Commit

Permalink
notification for waiting list and when coming from waiting list (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsNyl committed Oct 18, 2023
1 parent 360abc5 commit 25b679a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/content/models/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def admin_unregister(self, *args, **kwargs):
def save(self, *args, **kwargs):
if not self.registration_id:
self.create()
self.send_notification_and_mail()

if (
self.event.is_full
Expand All @@ -118,6 +117,7 @@ def save(self, *args, **kwargs):
):
raise EventIsFullError

self.send_notification_and_mail()
return super().save(*args, **kwargs)

def create(self):
Expand Down

0 comments on commit 25b679a

Please sign in to comment.