def get(self, request, pk=None): 
        
        managed_file = File.objects.get(pk=pk)
         
        selector = None
        if 'selector' in request.GET and request.GET.get('selector') == 'true':
            selector = managed_file.get_selector_button()
        
        html = render_to_string('administration/file_manager/file_details.html',
                                {'file': managed_file,
                                 'selector': selector},
                                context_instance = RequestContext(request)) 
         
        response = Response(status.HTTP_200_OK, {"html": html})
        return self.render(response)
dataset/ETHPy150Open ionyse/ionyweb/ionyweb/administration/views/file_manager.py/FileManagerFile.get/original