X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/4bbb2156110a75e84ef95ee28ba31490d986b870..99d077e46d0eb3efd5e96a65f120e6e4b6197db0:/forum/views/decorators.py diff --git a/forum/views/decorators.py b/forum/views/decorators.py index 3bede66..c99377c 100644 --- a/forum/views/decorators.py +++ b/forum/views/decorators.py @@ -49,7 +49,7 @@ class RefreshPageCommand(HttpResponse): def __init__(self): super(RefreshPageCommand, self).__init__( content=json.dumps({'commands': {'refresh_page': []}, 'success': True}), - mimetype="application/json") + content_type="application/json") def command(func, request, *args, **kwargs): try: @@ -77,7 +77,7 @@ def command(func, request, *args, **kwargs): } if request.is_ajax(): - return HttpResponse(json.dumps(response), mimetype="application/json") + return HttpResponse(json.dumps(response), content_type="application/json") else: return HttpResponseRedirect(request.META.get('HTTP_REFERER', '/'))