def _themes_queue(request, flagged=False, rereview=False):
 themes = _get_themes(request, request.user, flagged=flagged, rereview=rereview)
 ThemeReviewFormset = formset_factory(forms.ThemeReviewForm)
 formset = ThemeReviewFormset(initial=[{'theme': _rereview_to_theme(rereview, theme).id} for theme in themes])
 return render(request, 'editors/themes/queue.html', context(**{'actions': get_actions_json(), 'formset': formset, 'flagged': flagged, 'reject_reasons': rvw.THEME_REJECT_REASONS, 'rereview': rereview, 'reviewable': True, 'theme_formsets': zip(themes, formset), 'theme_count': len(themes), 'tab': ('flagged' if flagged else ('rereview' if rereview else 'pending'))}))

def _themes_queue ( request , flagged = False , rereview = False ) : themes = _get_themes ( request , request . user , flagged = flagged , rereview = rereview ) ThemeReviewFormset = formset_factory ( forms . ThemeReviewForm ) formset = ThemeReviewFormset ( initial = [ { 'theme' : _rereview_to_theme ( rereview , theme ) . id } for theme in themes ] ) return render ( request , 'editors/themes/queue.html' , context ( ** { 'actions' : get_actions_json ( ) , 'formset' : formset , 'flagged' : flagged , 'reject_reasons' : rvw . THEME_REJECT_REASONS , 'rereview' : rereview , 'reviewable' : True , 'theme_formsets' : zip ( themes , formset ) , 'theme_count' : len ( themes ) , 'tab' : ( 'flagged' if flagged else ( 'rereview' if rereview else 'pending' ) ) } ) )
themes queue in interactive format .