Skip to content
Snippets Groups Projects
Commit dd7a8710 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'Notification-bugfix' into 'master'

Error NoneType object - notification must first be saved

See merge request AlekSIS!239
parents eef7bd9d e311999b
No related branches found
No related tags found
1 merge request!239Error NoneType object - notification must first be saved
Pipeline #1829 passed with warnings
......@@ -334,6 +334,7 @@ class Notification(ExtensibleModel):
return str(self.title)
def save(self, **kwargs):
super().save(**kwargs)
if not self.sent:
send_notification(self.pk, resend=True)
self.sent = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment