diff options
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |