diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-12-28 19:10:07 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-12-28 19:10:07 (GMT) |
commit | e88b9ffa2cc5e0eda45f86daaaf956a82292f968 (patch) | |
tree | a2712cabfa521ad35b525de6fba15d5a8d6bb2a7 /program | |
parent | 31249001951c11c2b070679c52d3f282f4f18103 (diff) |
removed deleting of remaining time slots.
Diffstat (limited to 'program')
-rw-r--r-- | program/models.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/program/models.py b/program/models.py index a7033ec..eef98fa 100644 --- a/program/models.py +++ b/program/models.py @@ -231,10 +231,6 @@ class ProgramSlot(models.Model): for k in range(len(starts)): if starts[k].date() > old.until: timeslot = TimeSlot.objects.create(programslot=self, start=starts[k], end=ends[k]) - elif self.until < old.until: - for k in range(len(starts)): - if starts[k].date() < old.until: - timeslot = TimeSlot.objects.get(programslot=self, start=starts[k]).delete() def timeslot_count(self): return self.timeslots.count() |