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()
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
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
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()