django-braces icon indicating copy to clipboard operation
django-braces copied to clipboard

Django 4 ajax

Open jonaqp opened this issue 3 years ago • 3 comments

need change:

class AjaxResponseMixin(object): def dispatch(self, request, *args, **kwargs): request_method = request.method.lower()

    if request.is_ajax and request_method in self.http_method_names:
    

here modify: if request.headers.get('x-requested-with') == 'XMLHttpRequest' and request_method in self.http_method_names:

its work now

jonaqp avatar Jun 17 '22 05:06 jonaqp

This seems to be done but probably not release yet.

im-n1 avatar Jul 23 '22 12:07 im-n1

A release would be very welcome for this one

blatinier avatar Nov 09 '22 09:11 blatinier

that's also not working

Sahil-Midriff avatar Apr 24 '23 12:04 Sahil-Midriff