mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
parent
c446bdee84
commit
deed192dda
5 changed files with 9 additions and 9 deletions
|
@ -84,7 +84,7 @@ def return_json_file(request):
|
|||
cls=DjangoJSONEncoder,
|
||||
ensure_ascii=False)
|
||||
response = HttpResponse(obj_json.encode(charset), status=200,
|
||||
mimetype='application/json; charset=%s' % charset)
|
||||
content_type='application/json; charset=%s' % charset)
|
||||
response['Content-Disposition'] = 'attachment; filename=testfile.json'
|
||||
return response
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue