correct back button in editor edit

This commit is contained in:
Laura Klünder 2017-05-19 16:08:29 +02:00
parent 32c075301d
commit 96f4f97a7f

View file

@ -75,7 +75,7 @@ def edit(request, pk=None, model=None):
elif hasattr(obj, 'section'):
ctx.update({
'section': obj.section,
'back_url': reverse('editor.space', kwargs={'pk': pk}),
'back_url': reverse('editor.section', kwargs={'pk': obj.section.pk}),
})
elif hasattr(obj, 'space'):
ctx.update({