Skip to content

Commit 2d52fd9

Browse files
committed
Upgrade to Django 5.2 LTS
1 parent f37d0f1 commit 2d52fd9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Django ~= 4.2.3
2-
git+https://github.com/apluslms/django-essentials.git@1.6.0#egg=django-essentials==1.6.0
1+
Django ~= 5.2.13
2+
git+https://github.com/apluslms/django-essentials.git@1.7.0#egg=django-essentials
33
requests >= 2.28.0, < 3
44
PyYAML ~= 6.0.0
55
docutils ~= 0.17.1

util/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def not_modified_since(request, exercise):
125125
or not exercise.get('cacheable', True)
126126
):
127127
return False
128-
time = parse_http_date_safe(request.META.get('HTTP_IF_MODIFIED_SINCE'))
128+
time = parse_http_date_safe(request.headers.get('if-modified-since'))
129129
return time and time >= exercise['mtime']
130130

131131

0 commit comments

Comments
 (0)