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 response
def return_opml_response ( self , context , ** response_kwargs ) : 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
Returns export data as an opml file.