Finish basic notifications system and verify it works for the "password_required" notification.

This commit is contained in:
Joseph Schorr 2014-03-12 16:05:32 -04:00
parent f186fa2888
commit 578add3b9e
7 changed files with 128 additions and 12 deletions

View file

@ -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()