@json_view
@non_atomic_requests
def ajax_search(request):
 search_obj = BaseAjaxSearch(request)
 search_obj.types = amo.ADDON_SEARCH_TYPES
 return search_obj.items

@ json_view @ non_atomic_requests def ajax_search ( request ) : search_obj = BaseAjaxSearch ( request ) search_obj . types = amo . ADDON_SEARCH_TYPES return search_obj . items
this is currently used only to return add-ons for populating a new collection .