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

Changes for django 4.x compatibility #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/admin_timeline/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import re_path
from django.urls import re_path

from .views import log

Expand Down
3 changes: 2 additions & 1 deletion src/admin_timeline/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def _get_date_from_string(val):
last_date = request.POST.get('last_date', None)

# Using different template for AJAX driven requests
if request.is_ajax():
is_ajax = request.META.get('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest'
if is_ajax:
# Context to render the AJAX driven HTML with
context = {
'admin_log': log_entries,
Expand Down