Replace deprecated mimetype with content_type

Passing `mimetype` to an HttpResponse object is deprecated
since Django 1.5 and will throw an error in Django 1.7.
`content_type` is supported since Django 1.0.
master
Andreas Hug 2013-11-23 12:18:09 +01:00
parent 4aa4a99ff6
commit 10937eb6d8
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
pass pass
return HttpResponse(json.dumps(response, ensure_ascii=False), return HttpResponse(json.dumps(response, ensure_ascii=False),
mimetype='application/json') content_type='application/json')
class SortableInlineBase(SortableAdminBase, InlineModelAdmin): class SortableInlineBase(SortableAdminBase, InlineModelAdmin):