Commit ca785567 authored by fred's avatar fred

force week view to display Monday by default (#1137)

parent fee7aacc
......@@ -152,7 +152,7 @@ def weekview(year=None, week=None):
def weeknav(year=None, week=None, weekday=None):
year = year if year else datetime.today().isocalendar()[0]
week = week if week else datetime.today().isocalendar()[1]
weekday = weekday if weekday else datetime.today().weekday()
weekday = weekday if weekday is not None else datetime.today().weekday()
date = utils.tofirstdayinisoweek(year, week)
date = datetime(*date.timetuple()[:3])
......
......@@ -16,7 +16,7 @@
Du {{week_first_day|date:"l j N"}} au {{week_last_day|date:"l j N"}}
</nav>
</div>
{% weeknav year=year week=week %}
{% weeknav year=year week=week weekday=0 %}
</div>
<div class="wrapper">
<div class="program">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment