You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
Avoid using deprecated Django request.is_ajax() (#160)
Django 3.1 deprecated the `is_ajax` method on `HTTPRequest` and added a `RemovedInDjango40Warning`. The [release notes state](https://docs.djangoproject.com/en/3.1/releases/3.1/#id2):
> If you are writing your own AJAX detection method, request.is_ajax() can be reproduced exactly as request.headers.get('x-requested-with') == 'XMLHttpRequest'.
0 commit comments