~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to threadedcomments/views.py

  • Committer: franku
  • Date: 2019-04-11 15:06:09 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: somal@arcor.de-20190411150609-801l72ffxgr6gkui
converted to python 3.6 using 2to3 script

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
</errorlist>
122
122
        """
123
123
        response_str = Template(template_str).render(
124
 
            Context({'errors': zip(form.errors.values(), form.errors.keys())}))
 
124
            Context({'errors': list(zip(list(form.errors.values()), list(form.errors.keys())))}))
125
125
        return XMLResponse(response_str, is_iterable=False)
126
126
    else:
127
127
        return _preview(request, context_processors, extra_context, form_class=form_class)