forked from DGNum/gestioCOF
Renamed week_ago => history_limit and removed print
This commit is contained in:
parent
559b36b6f0
commit
9303772f9a
2 changed files with 3 additions and 4 deletions
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue