Commits

Germano Gabbianelli committed 39fc8b0

AutocompleteView now uses the correct JSON mimetype.

  • Participants
  • Parent commits 9887e7e

Comments (0)

Files changed (1)

File autocomplete/views.py

                 label = self.label(o),
             ))
         
-        # XXX set the mimetype
-        return HttpResponse(simplejson.dumps(data))
+        return HttpResponse(simplejson.dumps(data), mimetype='application/json')
 
     def _construct_search(self, field_name):
         # use different lookup methods depending on the notation