From: Boris Bobrov Date: Tue, 23 Feb 2016 01:15:06 +0000 (+0300) Subject: Change viewitems to items X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=993e061873851ec8c74d40152eba772d1b47def4;p=mediagoblin.git Change viewitems to items There is no viewitems in python3 --- diff --git a/mediagoblin/moderation/views.py b/mediagoblin/moderation/views.py index fdcbf051..ca0e6533 100644 --- a/mediagoblin/moderation/views.py +++ b/mediagoblin/moderation/views.py @@ -117,7 +117,7 @@ def moderation_reports_panel(request): closed_settings['current_page'] = form.closed_p.data or 1 filters = [ getattr(Report,key)==val - for key,val in filters.viewitems()] + for key,val in filters.items()] all_active = Report.query.filter( Report.resolved==None).filter(