示例#1
0
def pending_activity_log_count_for_developer(version):
    alog = ActivityLog.objects.for_versions(version).filter(
        action__in=amo.LOG_REVIEW_QUEUE_DEVELOPER)
    return filter_queryset_to_pending_replies(alog).count()
示例#2
0
 def get_serializer_context(self):
     ctx = super(VersionReviewNotesViewSet, self).get_serializer_context()
     ctx['to_highlight'] = filter_queryset_to_pending_replies(
         self.get_queryset())
     return ctx
示例#3
0
 def get_serializer_context(self):
     ctx = super(VersionReviewNotesViewSet, self).get_serializer_context()
     ctx['to_highlight'] = list(
         filter_queryset_to_pending_replies(
             self.get_queryset()).values_list('pk', flat=True))
     return ctx
示例#4
0
def pending_activity_log_count_for_developer(version):
    alog = ActivityLog.objects.for_version(version).filter(
        action__in=amo.LOG_REVIEW_QUEUE_DEVELOPER)
    return filter_queryset_to_pending_replies(alog).count()
示例#5
0
 def get_serializer_context(self):
     ctx = super(VersionReviewNotesViewSet, self).get_serializer_context()
     ctx['to_highlight'] = filter_queryset_to_pending_replies(
         self.get_queryset())
     return ctx