Skip to content

Commit

Permalink
Fix api collections 'to' date also.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaith committed May 6, 2016
1 parent 893ecdd commit 59f51f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion talks/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def get_talks(self,obj):
if self.context['from-date']:
events = events.filter(start__gte=self.context['from-date'])
if self.context['to-date']:
events = events.filter(end__lte=self.context['to-date'])
events = events.filter(end__lte=self.context['to-date']+timedelta(1))

serializer = HALEventSerializer(events, many=True, read_only=True, context=self.context)
return serializer.data
Expand Down

0 comments on commit 59f51f0

Please sign in to comment.