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

Fix resolve_conflicts to avoid rutime warnings

parent 83fd0408
No related branches found
No related tags found
No related merge requests found
...@@ -995,7 +995,8 @@ class Schedule(models.Model): ...@@ -995,7 +995,8 @@ class Schedule(models.Model):
# Collect upcoming timeslots to delete which might still remain # Collect upcoming timeslots to delete which might still remain
del_timeslots = TimeSlot.objects.filter( del_timeslots = TimeSlot.objects.filter(
schedule=schedule, start__gt=schedule.last_date schedule=schedule,
start__gt=timezone.make_aware(datetime.combine(schedule.last_date, time(0, 0)))
) )
for del_ts in del_timeslots: for del_ts in del_timeslots:
delete.append(del_ts) delete.append(del_ts)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment