diff --git a/boards/forms.py b/boards/forms.py --- a/boards/forms.py +++ b/boards/forms.py @@ -87,7 +87,7 @@ class NeboardForm(forms.Form): def as_json_errors(self): errors = [] - for name, field in self.fields.items(): + for name, field in list(self.fields.items()): if self[name].errors: errors.append({ 'field': name, diff --git a/boards/views/all_threads.py b/boards/views/all_threads.py --- a/boards/views/all_threads.py +++ b/boards/views/all_threads.py @@ -115,7 +115,7 @@ class AllThreadsView(PostMixin, BaseBoar text = self._remove_invalid_links(text) - if FORM_IMAGE in data.keys(): + if FORM_IMAGE in list(data.keys()): image = data[FORM_IMAGE] else: image = None diff --git a/boards/views/thread.py b/boards/views/thread.py --- a/boards/views/thread.py +++ b/boards/views/thread.py @@ -119,7 +119,7 @@ class ThreadView(BaseBoardView, PostMixi text = self._remove_invalid_links(text) - if FORM_IMAGE in data.keys(): + if FORM_IMAGE in list(data.keys()): image = data[FORM_IMAGE] else: image = None