Skip to content

Commit

Permalink
Merge pull request #82 from squidsoup/develop
Browse files Browse the repository at this point in the history
Django's HttpResponse object has deprecated the mimetype kwarg in 1.7
  • Loading branch information
crucialfelix committed Jul 24, 2014
2 parents 60fd4cd + 4957b26 commit f89f97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajax_select/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def ajax_lookup(request, channel):
} for item in instances
])

return HttpResponse(results, mimetype='application/javascript')
return HttpResponse(results, content_type='application/javascript')


def add_popup(request, app_label, model):
Expand Down

0 comments on commit f89f97a

Please sign in to comment.