Change Notification.object_id to be ID of Comemnt not TextComment
authorJessica Tallon <tsyesika@tsyesika.se>
Mon, 29 Feb 2016 12:03:41 +0000 (12:03 +0000)
committerJessica Tallon <tsyesika@tsyesika.se>
Mon, 29 Feb 2016 12:33:51 +0000 (12:33 +0000)
commit6efcab2d69c5745c2ea9616302a08e38a5af3de6
tree4844f7d68854db032ef9c2588adf819de3a291d8
parent6d38b1858c73cd7154c9fdabdc17594a820d311b
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/db/migrations/versions/4066b9f8b84a_use_comment_link_ids_notifications.py [new file with mode: 0644]
mediagoblin/notifications/__init__.py
mediagoblin/notifications/tools.py
mediagoblin/notifications/views.py
mediagoblin/templates/mediagoblin/fragments/header_notifications.html
mediagoblin/tests/test_notifications.py
mediagoblin/user_pages/views.py