#NEWLINE# def export_pages_as_json( modeladmin , request , queryset ) : #NEWLINE# #INDENT# response = HttpResponse ( content_type = 'application/json' ) #NEWLINE# response [ 'Content-Disposition' ] = ( 'attachment; filename=%s' % ( JSON_PAGE_EXPORT_FILENAME , ) ) #NEWLINE# response . write ( pages_to_json ( queryset ) ) #NEWLINE# return response