#13695: Django Comments Loses Ajax Headers When Redirecting (request.is_ajax() === True --> request.is_ajax() === False) ---------------------------+------------------------------------------------ Reporter: jacobstr | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.2 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ If you redirect what was originally a request that:
request.is_ajax() === True On the redirected page request.is_ajax() === False IMHO It should retain the Ajax headers. In my particular use case I'm submitting to django.contrib.comments via an ajax submission. I'm also providing the `next` parameter, hoping that my custom view can respond differently depending on whether or not the original form posting was Ajax or not (i.e. the comment form gracefully degrades to a non-ajax version if your js is borken). Unfortunately, the request never shows up as an Ajax request. -- Ticket URL: <http://code.djangoproject.com/ticket/13695> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
