code: def return_opml_response(self, context, **response_kwargs):
          '''
          Returns export data as an opml file.
          '''
          self.template_name = 'fiction_outlines/outline.opml'
          response = super().render_to_response(context, content_type='text/xml', **response_kwargs)
          response['Content-Disposition'] = 'attachment; filename="{}.opml"'.format(slugify(self.object.title))
          return responsf return_opml_response(self, context, **response_kwargs):
          '''
          Returns export data as an opml file.
          '''
          self.template_name = 'fiction_outlines/outline.opml'
          response = super().render_to_response(context, content_type='text/xml', **response_kwargs)
          response['Content-Disposition'] = 'attachment; filename="{}.opml"'.format(slugify(self.object.title))
          return response
docs: Returns export data as an opml file.