is_ajax deprecated #73
Labels
No Label
backlog
bug
duplicate
enhancement
feature
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
in discussion
invalid
priority
1
priority
2
priority
3
priority
4
priority
5
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: IT-Naturschutz/konova#73
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status quo
Just found out the
is_ajax()
method, being used in this codebase to recognize an ajax call, has been deprecated due to it's JQuery specific style.The discussion can be found here:
https://code.djangoproject.com/ticket/30997
Solution
Write own
is_ajax()
method which performs the http header checking as stated, e.g. here: https://stackoverflow.com/questions/63629935/django-3-1-and-is-ajaxUpdate
The
is_ajax()
method used indjango-bootstrap-modal
is not the same which is provided by django itself and has been deprecated.The one we use is this one:
dddf22e78a/bootstrap_modal_forms/utils.py (L1)
So there is nothing to do in here. This issue will be closed now.