'Return a JSON response in Select2 format.'

def render_to_response(self, context):

    q = self.request.GET.get('q', None)
    create_option = self.get_create_option(context, q)
    return http.HttpResponse(json.dumps({'results': (self.get_results(context) + create_option), 'pagination': {'more': self.has_more(context)}}), content_type='application/json')
