def _render_partial(self):
        return (self.request.is_ajax() and
                ('text/html' in self.request.accepted_types
                or self.request.GET.get('format', '') == 'partial'))
dataset/ETHPy150Open bueda/django-comrade/comrade/views/generic/partial.py/PartialMixin._render_partial/original