django-pdfformfiller/views/json.py
2013-11-10 22:00:41 -06:00

8 lines
174 B
Python

from django.http import HttpResponse
def json_response(context):
response = HttpResponse(context)
response['Content-Type'] = 'application/pdf'
return response