]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/akismet/startup.py
Replace deprecated mimetype with content_type
[osqa.git] / forum_modules / akismet / startup.py
index 2387e05d620fe5f609a85942b943650fc2b92191..7600bee1f30370a60319d3bbf09f53e42f645d23 100644 (file)
@@ -1,5 +1,4 @@
 import json
-import loggin
 
 from django.utils.translation import ugettext as _
 from django.http import HttpResponse, HttpResponseRedirect
@@ -52,7 +51,7 @@ def check_spam(param, comment_type):
                     'success': False,
                     'error_message': _("Sorry, but akismet thinks your %s is spam.") % comment_type
                     }
-                    return HttpResponse(json.dumps(response), mimetype="application/json")
+                    return HttpResponse(json.dumps(response), content_type="application/json")
                 else:
                     captcha_checked = False
                     try: