diff --git a/kfet/templates/kfet/history.html b/kfet/templates/kfet/history.html
index 91319012..03f9bbdf 100644
--- a/kfet/templates/kfet/history.html
+++ b/kfet/templates/kfet/history.html
@@ -62,7 +62,7 @@ $(document).ready(function() {
format : 'YYYY-MM-DD HH:mm',
stepping : 5,
locale : 'fr',
- minDate : '{{ week_ago }}',
+ minDate : '{{ history_limit }}',
showTodayButton: true,
widgetPositioning: {
horizontal: "left",
diff --git a/kfet/views.py b/kfet/views.py
index 69b9395e..7245f3bf 100644
--- a/kfet/views.py
+++ b/kfet/views.py
@@ -1588,12 +1588,11 @@ def kpsul_articles_data(request):
@teamkfet_required
def history(request):
- week_ago = timezone.now() - settings.KFET_HISTORY_DATE_LIMIT
+ history_limit = timezone.now() - settings.KFET_HISTORY_DATE_LIMIT
data = {
"filter_form": FilterHistoryForm(),
- "week_ago": week_ago.strftime("%Y-%m-%d %H:%M"),
+ "history_limit": history_limit.strftime("%Y-%m-%d %H:%M"),
}
- print(data["week_ago"])
return render(request, "kfet/history.html", data)