From 475f8f3523cc28f13451ed581794de6314466acc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sat, 10 Jun 2017 23:09:29 +0200 Subject: [PATCH] only show primary sections on editor index --- src/c3nav/editor/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/editor/views.py b/src/c3nav/editor/views.py index e5afc439..d1111f89 100644 --- a/src/c3nav/editor/views.py +++ b/src/c3nav/editor/views.py @@ -39,7 +39,7 @@ def child_model(model_name, kwargs=None, parent=None): @sidebar_view def main_index(request): return render(request, 'editor/index.html', { - 'sections': Section.objects.all(), + 'sections': Section.objects.filter(on_top_of__isnull=True), 'child_models': [ child_model('LocationGroup'), child_model('Source'),