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

fixed week view

parent 4b5a38c6
No related branches found
No related tags found
No related merge requests found
......@@ -275,7 +275,8 @@ class TimeSlotManager(models.Manager):
today = datetime.combine(day, time(6,0))
tomorrow = today + timedelta(days=1)
return TimeSlot.objects.filter(models.Q(start__lte=today, end__gte=today) | models.Q(start__gt=today, start__lt=tomorrow))
return TimeSlot.objects.filter(models.Q(start__lte=today, end__gte=today) |
models.Q(start__gt=today, start__lt=tomorrow)).exclude(end=today)
class TimeSlot(models.Model):
programslot = models.ForeignKey(ProgramSlot, related_name='timeslots', verbose_name=_("Program slot"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment