fix error 500 when editing a section

This commit is contained in:
Laura Klünder 2017-06-11 00:02:40 +02:00
parent 3e02958b37
commit 745510ff99

View file

@ -122,7 +122,7 @@ def edit(request, pk=None, model=None, section=None, space=None, explicit_edit=F
}) })
if not new: if not new:
ctx.update({ ctx.update({
'geometry_url': '/api/editor/geometries/?section='+str(section.primary_section_pk), 'geometry_url': '/api/editor/geometries/?section='+str(obj.primary_section_pk),
}) })
elif model == Space and not new: elif model == Space and not new:
ctx.update({ ctx.update({