Skip to content
Snippets Groups Projects
Commit 5a4a66a0 authored by Martin Burchell's avatar Martin Burchell
Browse files

Merge branch 'tabbed_page' of github.com:aptivate/internewshid into tabbed_page

parents 3fe633ab 8cddb6e9
Branches
No related tags found
1 merge request!22Tabbed page
......@@ -32,9 +32,9 @@ class TabbedPageView(TemplateView):
candidates = []
tab_name = self.kwargs.get('tab_name')
if tab_name:
candidates = self.page.tabs.all().filter(name=tab_name)
candidates = self.page.tabs.filter(name=tab_name)
if len(candidates) == 0:
candidates = self.page.tabs.all().filter(default=True)
candidates = self.page.tabs.filter(default=True)
if len(candidates) == 0:
candidates = self.page.tabs.all()
if len(candidates) > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment