Skip to content

Commit 392922b

Browse files
committed
Fix HttpResponse keyword argument name.
1 parent e9c650c commit 392922b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xadmin/views/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def get_form_params(self, new_params=None, remove=None):
182182

183183
def render_response(self, content, response_type='json'):
184184
if response_type == 'json':
185-
response = HttpResponse(mimetype="application/json; charset=UTF-8")
185+
response = HttpResponse(content_type="application/json; charset=UTF-8")
186186
response.write(
187187
json.dumps(content, cls=JSONEncoder, ensure_ascii=False))
188188
return response

0 commit comments

Comments
 (0)