Commit cc8d0f7e by Szabolcs Gelencser

Add template sharing before generating view

parent bbcd5f6a
......@@ -385,6 +385,7 @@ class TemplateDetail(LoginRequiredMixin, GraphMixin, SuccessMessageMixin, Update
def get_context_data(self, **kwargs):
template = self.get_object()
openstack_api.glance.image_update(self.request, template.image_id, visibility="shared")
context = super(TemplateDetail, self).get_context_data(**kwargs)
# context['acl'] = AclUpdateView.get_acl_data(
# template, self.request.user, 'dashboard.views.template-acl')
......
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