don't zoom when creating something new
This commit is contained in:
parent
706e334fcb
commit
1eea04389e
1 changed files with 5 additions and 0 deletions
|
@ -191,6 +191,11 @@ def edit(request, pk=None, model=None, level=None, space=None, on_top_of=None, e
|
|||
'back_url': reverse('.'.join(request.resolver_match.url_name.split('.')[:-1]+['list']), kwargs=kwargs),
|
||||
})
|
||||
|
||||
if new:
|
||||
ctx.update({
|
||||
'nozoom': True
|
||||
})
|
||||
|
||||
if request.method == 'POST':
|
||||
if not new and request.POST.get('delete') == '1':
|
||||
# Delete this mapitem!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue