fix error 500 when editing a section
This commit is contained in:
parent
3e02958b37
commit
745510ff99
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ def edit(request, pk=None, model=None, section=None, space=None, explicit_edit=F
|
|||
})
|
||||
if not new:
|
||||
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:
|
||||
ctx.update({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue