def get_context_data(self, **kwargs):
        context = kwargs
        if 'view' not in context:
            context['view'] = self

        # Insert the considered forum, topic and post into the context
        context['forum'] = self.get_forum()
        context['topic'] = self.get_topic()
        context['post'] = self.get_post()

        # Handles the preview of the attachments
        if context['attachment_formset']:
            if hasattr(self, 'attachment_preview') and self.attachment_preview:
                context['attachment_preview'] = self.attachment_preview
                attachments = []
                # Computes the list of the attachment file names that should be attached
                # to the forum post being created or updated
                for form in context['attachment_formset'].forms:
                    if form['DELETE'].value() \
                        or (not self.request._files in form['file'].html_name and
                            not form.instance.pk):
                        continue
                    attachments.append(
                        (
                            form,
                            self.request._files[form['file'].html_name].name if not form.instance
                            else form.instance.filename
                        ))
                context['attachment_file_previews'] = attachments

        return context
dataset/ETHPy150Open ellmetha/django-machina/machina/apps/forum_conversation/views.py/BasePostFormView.get_context_data/swapped operands of `in`