docs: def get_context_data(self, **kwargs):
          """ Returns the context data to provide to the template. """
          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 form['file'].html_name in self.request._files 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