Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Conversation

@gtwohig
Copy link
Contributor

@gtwohig gtwohig commented Feb 22, 2021

Addresses #138

Django 3.1 deprecated the is_ajax method on HttpRequest and added a RemovedInDjango40Warning. The release notes state:

If you are writing your own AJAX detection method, request.is_ajax() can be reproduced exactly as request.headers.get('x-requested-with') == 'XMLHttpRequest'.

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'.
@gtwohig gtwohig requested a review from a team February 22, 2021 15:32
@vreynolds vreynolds added the version: bump patch A PR with release-worthy changes and is backwards-compatible. label Feb 22, 2021
Copy link
Contributor

@vreynolds vreynolds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@vreynolds vreynolds merged commit 4bbbb9a into honeycombio:main Feb 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

version: bump patch A PR with release-worthy changes and is backwards-compatible.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants