~netlandish/django-wiki

d1928738ea887b56cc8ebf42104c463a8d663783 — Benjamin Bach 4 years ago 88d284f
Remove odd call to list()
1 files changed, 0 insertions(+), 2 deletions(-)

M src/wiki/plugins/editsection/views.py
M src/wiki/plugins/editsection/views.py => src/wiki/plugins/editsection/views.py +0 -2
@@ 148,7 148,6 @@ class EditSection(EditView):
        location = self.locate_section(self.article, text)
        if location:
            if self.orig_section != text[location[0]:location[1]]:
                list(messages.get_messages(self.request))
                messages.warning(
                    self.request,
                    " ".format(ERROR_SECTION_CHANGED, ERROR_SECTION_UNSAVED, ERROR_TRY_AGAIN)


@@ 160,7 159,6 @@ class EditSection(EditView):
            # Back to the version before replacing the article with the section
            self.article.current_revision = self.article.current_revision.previous_revision
            self.article.save()
            list(messages.get_messages(self.request))
            messages.error(
                self.request,
                " ".format(ERROR_ARTICLE_CHANGED, ERROR_TRY_AGAIN)