Skip to content
Snippets Groups Projects
Commit e88b9ffa authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

removed deleting of remaining time slots.

parent 31249001
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment