Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bug 898159: Put "All Regions" in page when searching in all regions.
  • Loading branch information
Michael Kelly committed Jul 26, 2013
1 parent 08f18a6 commit cca88e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flicks/videos/search.py
Expand Up @@ -45,7 +45,7 @@ def search_videos(query=None, fields=None, region=None, sort=None):
qs = qs.filter(reduce(operator.or_, filters)) # Mash 'em all together!

# Filter by region
if region:
if region is not None:
countries = regions.get_countries(region)
if countries:
qs = qs.filter(user__userprofile__country__in=countries)
Expand Down
2 changes: 1 addition & 1 deletion flicks/videos/templates/videos/2013/list.html
Expand Up @@ -107,7 +107,7 @@ <h1 class="page-title">{{ _('Welcome to the<br> Firefox Flicks 2013 gallery') }}
<h2>
{% trans count=videos.paginator.count,
query=form.cleaned_data['query'],
region=form.region_names[form.cleaned_data['region']] %}
region=form.region_names[form.cleaned_data['region'] or ''] %}
<i>{{ count }}</i> videos for <i>{{ query }}</i> in <i>{{ region }}</i>
{% endtrans %}
</h2>
Expand Down

0 comments on commit cca88e7

Please sign in to comment.