From 50f4e5d3277d611f3b9a662f436346e03f6e3996 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Thu, 9 Feb 2017 11:34:59 +0100 Subject: Plus de décalage artificiel à la semaine prochaine dans les vues --- utils.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils.py') diff --git a/utils.py b/utils.py index 1a177b4..8b5325c 100644 --- a/utils.py +++ b/utils.py @@ -2,6 +2,9 @@ from django.utils import timezone import datetime +def get_current_week(): + return timezone.now().isocalendar()[:2] + def get_current_or_next_week(): year, week, day = timezone.now().isocalendar() if day >= 6: -- cgit v1.2.1