code: 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)
docs: Introduces the ``ensure_csrf_cookie`` decorator and handles xeditable choices ajax.