fix editing spaces
This commit is contained in:
parent
3dc66dc9b8
commit
eeaaf3f135
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ def edit(request, pk=None, model=None, section=None, space=None, on_top_of=None,
|
|||
'back_url': reverse('editor.sections.detail', kwargs={'pk': on_top_of.pk}),
|
||||
})
|
||||
elif model == Space and not new:
|
||||
section = obj.section
|
||||
ctx.update({
|
||||
'section': obj.section,
|
||||
'back_url': reverse('editor.spaces.detail', kwargs={'section': obj.section.pk, 'pk': pk}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue