@permission_required([('Apps', 'ModerateReview')])
def queue_moderated(request):
 queues_helper = ReviewersQueuesHelper(request)
 qs = queues_helper.get_moderated_queue()
 page = paginate(request, qs, per_page=20)
 flags = dict(ReviewFlag.FLAGS)
 reviews_formset = ReviewFlagFormSet((request.POST or None), queryset=page.object_list, request=request)
 if reviews_formset.is_valid():
  reviews_formset.save()
  return redirect(reverse('reviewers.apps.queue_moderated'))
 return render(request, 'reviewers/queue.html', context(request, reviews_formset=reviews_formset, tab='moderated', page=page, flags=flags))

@ permission_required ( [ ( 'Apps' , 'ModerateReview' ) ] ) def queue_moderated ( request ) : queues_helper = ReviewersQueuesHelper ( request ) qs = queues_helper . get_moderated_queue ( ) page = paginate ( request , qs , per_page = 20 ) flags = dict ( ReviewFlag . FLAGS ) reviews_formset = ReviewFlagFormSet ( ( request . POST or None ) , queryset = page . object_list , request = request ) if reviews_formset . is_valid ( ) : reviews_formset . save ( ) return redirect ( reverse ( 'reviewers.apps.queue_moderated' ) ) return render ( request , 'reviewers/queue.html' , context ( request , reviews_formset = reviews_formset , tab = 'moderated' , page = page , flags = flags ) )
queue for reviewing app reviews .