diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-12-28 16:09:05 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-12-28 16:09:05 (GMT) |
commit | 31249001951c11c2b070679c52d3f282f4f18103 (patch) | |
tree | 90856f0a0894abfd387894a9ea7961172f28fd95 | |
parent | 9de35b2d93b589085bedb66d9562ea6ee0611b60 (diff) |
fixed problem when saving time slots.
-rw-r--r-- | program/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/models.py b/program/models.py index 1e8c1f0..a7033ec 100644 --- a/program/models.py +++ b/program/models.py @@ -196,15 +196,15 @@ class ProgramSlot(models.Model): byweekday_start = (0, 1, 2, 3, 4, 5, 6) byweekday_end = (0, 1, 2, 3, 4, 5, 6) else: - byweekday_start = self.byweekday + byweekday_start = int(self.byweekday) if self.tend < self.tstart: if self.byweekday < 6: - byweekday_end = self.byweekday + 1 + byweekday_end = int(self.byweekday + 1) else: byweekday_end = 0 else: - byweekday_end = self.byweekday + byweekday_end = int(self.byweekday) if self.tend < self.tstart: dend = self.dstart + timedelta(days=+1) |