Commit 01b6960b by Őry Máté

one: remove new template if vm submission failed

parent d0abde5e
......@@ -287,6 +287,8 @@ def vm_new(request, template=None, share=None, redir=True):
inst.time_of_suspend = time_of_suspend
inst.time_of_delete = time_of_delete
inst.save()
elif extra and base:
base.delete()
return _redirect_or_201(inst.get_absolute_url() if inst else '/', redir)
class VmListView(ListView):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment