#31210: Document backwards-compatible replacement for is_ajax()
-------------------------------------+-------------------------------------
Reporter: Collin Anderson | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: HTTP handling | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by felixxm):
We documented using the `HttpRequest.accepts()` or writing a custom AJAX
detection method as recommended replacements:
> 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.
Do you think that we should be so detailed and document the `is_ajax()`
implementation in release notes? I'm not sure.
--
Ticket URL: <https://code.djangoproject.com/ticket/31210#comment:2>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/072.63c389f9846a3f5f77362b827cb8f531%40djangoproject.com.