Change viewitems to items
authorBoris Bobrov <breton@cynicmansion.ru>
Tue, 23 Feb 2016 01:15:06 +0000 (04:15 +0300)
committerBoris Bobrov <breton@cynicmansion.ru>
Tue, 23 Feb 2016 01:15:06 +0000 (04:15 +0300)
There is no viewitems in python3

mediagoblin/moderation/views.py

index fdcbf051428fd17bfdf929959beea07c3e066175..ca0e653344039ea4c1d3870d022e5b8331db41c4 100644 (file)
@@ -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(