core: improve notification callback system

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia committed 2017-10-15 12:00:33 +02:00
1 parent 9b0b381fa3
commit d5c6695f80
2 files changed
+11 -4

No files matched your search

+3 -1
View File
@@ -62,7 +62,9 @@ def notification(request, notif_id):
if notif:
if notif.type not in settings.SITH_PERMANENT_NOTIFICATIONS:
notif.viewed = True
notif.save()
else:
notif.callback()
notif.save()
return redirect(notif.url)
return redirect("/")