Commits

Peter Harley  committed 44d299e

Change "mimetype" to "content_type" when creating a response.

Fixes #15

  • Participants
  • Parent commits 413a77a

Comments (0)

Files changed (1)

File taggit_autosuggest/views.py

         values_list('name', flat=True)
     data = [{'name': n, 'value': n} for n in tag_name_qs[:limit]]
 
-    return HttpResponse(json.dumps(data), mimetype='application/json')
+    return HttpResponse(json.dumps(data), content_type='application/json')