core: improve notification callback system

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia
2017-10-15 11:59:41 +02:00
parent 9b0b381fa3
commit d5c6695f80
2 changed files with 11 additions and 4 deletions

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("/")