fix broken back url on section detail
This commit is contained in:
parent
bafe094785
commit
5a3dc02c1d
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ def edit(request, pk=None, model=None, section=None, space=None, explicit_edit=F
|
||||||
if model == Section:
|
if model == Section:
|
||||||
ctx.update({
|
ctx.update({
|
||||||
'section': obj,
|
'section': obj,
|
||||||
'back_url': reverse('editor.index') if new else reverse('editor.section', kwargs={'pk': pk}),
|
'back_url': reverse('editor.index') if new else reverse('editor.sections.detail', kwargs={'pk': pk}),
|
||||||
})
|
})
|
||||||
elif model == Space and not new:
|
elif model == Space and not new:
|
||||||
ctx.update({
|
ctx.update({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue