def dispatch(self, request, *args, **kwargs):
        """ Introduces the ``ensure_csrf_cookie`` decorator and handles xeditable choices ajax. """
        if request.GET.get(self.xeditable_fieldname_param):
            return self.get_ajax_xeditable_choices(request, *args, **kwargs)
        return super(XEditableMixin, self).dispatch(request, *args, **kwargs)
def dispatch ( self , request , * args , ** kwargs ) : if request . GET . get ( self . xeditable_fieldname_param ) : return self . get_ajax_xeditable_choices ( request , * args , ** kwargs ) return super ( XEditableMixin , self ) . dispatch ( request , * args , ** kwargs )
Introduces the ``ensure_csrf_cookie`` decorator and handles xeditable choices ajax.