Finish basic notifications system and verify it works for the "password_required" notification.
This commit is contained in:
parent
f186fa2888
commit
578add3b9e
7 changed files with 128 additions and 12 deletions
|
@ -1566,4 +1566,4 @@ def list_notifications(user, kind=None):
|
|||
|
||||
def delete_notifications_by_kind(user, kind):
|
||||
kind_ref = NotificationKind.get(name=kind)
|
||||
Notification.delete().where(Notification.user == user, Notification.kind == kind_ref).execute()
|
||||
Notification.delete().where(Notification.notification_user == user, Notification.kind == kind_ref).execute()
|
||||
|
|
Reference in a new issue