def get_content_type(self):
        http_accept = self.request.META.get('HTTP_ACCEPT', [])
        if "application/json" in http_accept:
            return "application/json"
        else:
            return "text/plain"
dataset/ETHPy150Open tangentlabs/django-fancypages/fancypages/mixins.py/JSONResponseMixin.get_content_type/original