Merge pull request #62 from foonicorn/features/contenttype
Replace deprecated mimetype with content_type
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user