only show primary sections on editor index

This commit is contained in:
Laura Klünder 2017-06-10 23:09:29 +02:00
parent 9f1f8c78ba
commit 475f8f3523

View file

@ -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'),