Thursday, March 22, 2018¶
Today and yesterday I finished working on #2350 (Atelier avec
une série de 3 week-ends) by adding a test case in
Holidays in Lino Voga (which revealed some more minor problems,
one of them was that LongEntryChecker
was silently setting the
end_date of these entries back to empty because the calendar entry
type had max_days
set
to 1. I moved the logic to a duration_veto()
method and added a
full_clean()
method to cal.Event
so that it now
complains immediately when an entry lasts longer than the allowed
number of days. This will prevent users from accidentally setting
end_date
instead of
max_date
.