Skip to content

Commit

Permalink
Use case insensitive comparison for series typeahead.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaith committed Apr 25, 2016
1 parent cf42a09 commit 191ae86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion talks/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def suggest_event_group(request):
"""Get event group titles for typeahead searching
"""
query = request.GET.get('q', '')
series = EventGroup.objects.filter(Q(title__startswith=query)).distinct()
series = EventGroup.objects.filter(Q(title__istartswith=query)).distinct()
serializer = EventGroupSerializer(series, many=True)
return Response(serializer.data)

Expand Down

0 comments on commit 191ae86

Please sign in to comment.