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