From 31249001951c11c2b070679c52d3f282f4f18103 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Wed, 28 Dec 2011 12:09:05 -0400 Subject: fixed problem when saving time slots. 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) -- cgit v0.10.2