#30997: Deprecate HttpRequest.is_ajax. -------------------------------------+------------------------------------- Reporter: Adam (Chainz) | Owner: nobody Johnson | Type: | Status: new Cleanup/optimization | Component: HTTP handling | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Claude Paroz): The first step would be to document current limitations of the method. Second step would be to avoid using it as much as possible in Django's own code. Finally the deprecation can take place. It remains to be shown how the [https://github.com/django/django/pull/12091 request.accepts] proposal can play a role here. A good exercise would be to replace that example: https://docs.djangoproject.com/en/2.2/topics/class-based-views/generic- editing/#ajax-example (or would you simply remove it?) -- Ticket URL: <https://code.djangoproject.com/ticket/30997#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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.b1620de667083a5cf988cf5dcc6865c6%40djangoproject.com.