fix editing spaces

This commit is contained in:
Laura Klünder 2017-06-11 12:44:11 +02:00
parent 3dc66dc9b8
commit eeaaf3f135

View file

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