Commit d488150d by Kálmán Viktor

dashboard: specify owner at instance save as

parent 41aea907
......@@ -339,7 +339,8 @@ class VmDetailView(CheckedDetailView):
new_name = "Saved from %s (#%d) at %s" % (
self.object.name, self.object.pk, date
)
template = self.object.save_as_template(new_name)
template = self.object.save_as_template(name=new_name,
owner=request.user)
messages.success(request, _("Instance succesfully saved as template, "
"please rename it!"))
return redirect(reverse_lazy("dashboard.views.template-detail",
......
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