Beispiel #1
0
    def get_notifications(self):
        """Returns notifications where the user is the target content object,
        *not* necessarily the actor or recipient.

        Returns:
            QuerySet
        """
        return get_generic_related_queryset(self, Notification)
Beispiel #2
0
 def get_notifications(self):
     """
     Returns:
         QuerySet: Notifications belonging to Activity instance.
     """
     return get_generic_related_queryset(self, Notification)
Beispiel #3
0
 def get_likes(self):
     """
     Returns:
         QuerySet: Likes belonging to Activity instance.
     """
     return get_generic_related_queryset(self, Like)
Beispiel #4
0
 def get_bookmarks(self):
     """
     Returns:
         QuerySet: Bookmarks belonging to Activity instance.
     """
     return get_generic_related_queryset(self, Bookmark)
Beispiel #5
0
 def get_flags(self):
     """
     Returns:
         QuerySet: Flags belonging to Activity instance.
     """
     return get_generic_related_queryset(self, Flag)
Beispiel #6
0
 def get_comments(self):
     """
     Returns:
         QuerySet: Comments belonging to Activity instance.
     """
     return get_generic_related_queryset(self, Comment)
Beispiel #7
0
 def get_notifications(self):
     return get_generic_related_queryset(self, Notification)
Beispiel #8
0
 def notifications(self):
     """
     Returns:
         QuerySet: Notifications associated with objects in this QuerySet
     """
     return get_generic_related_queryset(self, Notification)