Skip to content

Commit 10937eb

Browse files
committed
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.
1 parent 4aa4a99 commit 10937eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminsortable/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def do_sorting_view(self, request, model_type_id=None):
246246
pass
247247

248248
return HttpResponse(json.dumps(response, ensure_ascii=False),
249-
mimetype='application/json')
249+
content_type='application/json')
250250

251251

252252
class SortableInlineBase(SortableAdminBase, InlineModelAdmin):

0 commit comments

Comments
 (0)