replace Space.level with secondary sections on top of primary sections
This commit is contained in:
parent
9502e247d1
commit
9910b3ed83
7 changed files with 122 additions and 47 deletions
|
@ -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'),
|
||||
|
@ -52,7 +52,7 @@ def section_detail(request, pk):
|
|||
section = get_object_or_404(Section, pk=pk)
|
||||
|
||||
return render(request, 'editor/section.html', {
|
||||
'sections': Section.objects.all(),
|
||||
'sections': Section.objects.filter(on_top_of__isnull=True),
|
||||
'section': section,
|
||||
'section_url': 'editor.sections.detail',
|
||||
'section_as_pk': True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue