Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit 12a32e5

Browse files
author
Mateja
committed
return all countries when there's no country filter
1 parent 5522e5e commit 12a32e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_filtered_events(search_filter=None, country_filter=None, theme_filter=No
8989
filter_args = (Q(title__icontains=search_filter) | Q(description__icontains=search_filter) | Q(tags__name__icontains=search_filter)
9090
| Q(organizer__icontains=search_filter) | Q(location__icontains=search_filter),)
9191

92-
if country_filter not in [ custom_country[0] for custom_country in Event.CUSTOM_COUNTRY_ENTRIES ]:
92+
if country_filter is not None and country_filter not in [ custom_country[0] for custom_country in Event.CUSTOM_COUNTRY_ENTRIES ]:
9393
filter_kwargs['country'] = country_filter
9494

9595
if theme_filter:

0 commit comments

Comments
 (0)