Skip to content

Commit 3e9adf7

Browse files
committed
Change deprecated mimetype with content_type parameter
1 parent cba5e63 commit 3e9adf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangojs/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get(self, request, **kwargs):
8080
data = self.get_context_data(**kwargs)
8181
return HttpResponse(
8282
json.dumps(data, cls=LazyJsonEncoder),
83-
mimetype=JSON_MIMETYPE
83+
content_type=JSON_MIMETYPE
8484
)
8585

8686

0 commit comments

Comments
 (0)