is_ajax deprecated #73

Closed
opened 2022-01-19 09:46:35 +01:00 by mpeltriaux · 1 comment
Owner

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-ajax

# 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-ajax
mpeltriaux added the
enhancement
label 2022-01-19 09:46:35 +01:00
mpeltriaux self-assigned this 2022-01-19 09:46:35 +01:00
Author
Owner

Update

The is_ajax() method used in django-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.

# Update The `is_ajax()` method used in `django-bootstrap-modal` is not the same which is provided by django itself and has been deprecated. The one we use is this one: https://github.com/trco/django-bootstrap-modal-forms/blob/dddf22e78aead693fedcabe94961fb1ddebc6db7/bootstrap_modal_forms/utils.py#L1 So there is nothing to do in here. This issue will be closed now.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IT-Naturschutz/konova#73
No description provided.