From 62a4ce1bf2190d80b4e1c6f15190d587d59ac26e Mon Sep 17 00:00:00 2001 From: Mike Cooper Date: Wed, 11 Feb 2015 11:03:49 -0800 Subject: [PATCH] [Bug 1132146, 1132145] Add id to notification APIs. --- kitsune/notifications/api.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kitsune/notifications/api.py b/kitsune/notifications/api.py index d205da39616..0f17b7f29d8 100644 --- a/kitsune/notifications/api.py +++ b/kitsune/notifications/api.py @@ -32,13 +32,13 @@ class NotificationSerializer(serializers.ModelSerializer): class Meta: model = PushNotificationRegistration fields = ( + 'action_object', + 'actor', + 'id', 'is_read', - # 'read_at', + 'target', 'timestamp', - 'actor', 'verb', - 'action_object', - 'target' ) @@ -81,6 +81,7 @@ class Meta: model = PushNotificationRegistration fields = ( 'creator', + 'id', 'push_url', )