Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'WSGIRequest' object has no attribute 'is_ajax' #82

Open
NiklasMerz opened this issue Oct 26, 2022 · 2 comments
Open

AttributeError: 'WSGIRequest' object has no attribute 'is_ajax' #82

NiklasMerz opened this issue Oct 26, 2022 · 2 comments

Comments

@NiklasMerz
Copy link

I get this error with Django 4.x. Can we safely remove this check?

From Django release notes

The HttpRequest.is_ajax() method is deprecated as it relied on a jQuery-specific way of signifying AJAX calls, while current usage tends to use the JavaScript Fetch API. Depending on your use case, you can either write your own AJAX detection method, or use the new HttpRequest.accepts() method if your code depends on the client Accept HTTP header.

NiklasMerz added a commit to NiklasMerz/django-tellme that referenced this issue Oct 26, 2022
For Django 4.x compatibility.

Closes: ludrao#82
@NiklasMerz
Copy link
Author

Sorry there is already PR #80 for that.

@Moring
Copy link

Moring commented Jul 31, 2023

See #81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants