From e88b9ffa2cc5e0eda45f86daaaf956a82292f968 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Wed, 28 Dec 2011 15:10:07 -0400 Subject: removed deleting of remaining time slots. 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() -- cgit v0.10.2