@permission_required([('Websites', 'ReadAbuse')])
def queue_abuse_websites(request):
 queues_helper = ReviewersQueuesHelper(request)
 sites = queues_helper.get_abuse_queue_websites()
 page = paginate(request, sites, per_page=20)
 abuse_formset = WebsiteAbuseViewFormSet((request.POST or None), queryset=page.object_list, request=request)
 if abuse_formset.is_valid():
  abuse_formset.save()
  return redirect(reverse('reviewers.websites.queue_abuse'))
 return render(request, 'reviewers/queue.html', context(request, abuse_formset=abuse_formset, tab='abusewebsites', page=page))

@ permission_required ( [ ( 'Websites' , 'ReadAbuse' ) ] ) def queue_abuse_websites ( request ) : queues_helper = ReviewersQueuesHelper ( request ) sites = queues_helper . get_abuse_queue_websites ( ) page = paginate ( request , sites , per_page = 20 ) abuse_formset = WebsiteAbuseViewFormSet ( ( request . POST or None ) , queryset = page . object_list , request = request ) if abuse_formset . is_valid ( ) : abuse_formset . save ( ) return redirect ( reverse ( 'reviewers.websites.queue_abuse' ) ) return render ( request , 'reviewers/queue.html' , context ( request , abuse_formset = abuse_formset , tab = 'abusewebsites' , page = page ) )
queue for reviewing abuse reports for websites .