Skip to content

Commit

Permalink
Fixed bug when using same category URL name for different editions
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 authored and holgerd77 committed Aug 25, 2015
1 parent 0e7bf3b commit da963ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_showroom/views.py
Expand Up @@ -88,7 +88,7 @@ def category(request, ed_country, url_name):
ed_category_list = get_ed_category_list(act_edition)
home_dummy_ed_cat = get_home_dummy_ed_cat(act_edition)
ed_category_list.insert(0, home_dummy_ed_cat)
act_ed_cat = get_object_or_404(EditionCategory, url_name=url_name)
act_ed_cat = get_object_or_404(EditionCategory, edition=act_edition, url_name=url_name)
ed_website_list = EditionWebsite.objects.filter(edition=act_edition, website__category=act_ed_cat.category).order_by('order')
c = RequestContext(request, {
'edition_list': get_edition_list(),
Expand Down

0 comments on commit da963ed

Please sign in to comment.