From 6efcab2d69c5745c2ea9616302a08e38a5af3de6 Mon Sep 17 00:00:00 2001 From: Jessica Tallon Date: Mon, 29 Feb 2016 12:03:41 +0000 Subject: Change Notification.object_id to be ID of Comemnt not TextComment This shouldn't really effect much but it is a needed change for the future this changes the Notification.object_id to be the ID of the Comment (the link table to the comment object) rather than TextComment (the comment object itself). This is needed as now comments can be other things, other than TextComment. --- mediagoblin/user_pages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mediagoblin/user_pages') diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index 547048d6..ad03e011 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -207,7 +207,7 @@ def media_post_comment(request, media): messages.add_message( request, messages.SUCCESS, _('Your comment has been posted!')) - trigger_notification(comment, media, request) + trigger_notification(link, media, request) return redirect_obj(request, media) -- cgit v1.2.3