Merge "Add titles to "Update Lease" and "Update Host" forms"

This commit is contained in:
Zuul 2017-11-20 04:29:38 +00:00 committed by Gerrit Code Review
commit 386f13159e
2 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class UpdateView(forms.ModalFormView):
form_class = project_forms.UpdateForm
template_name = 'admin/hosts/update.html'
success_url = reverse_lazy('horizon:admin:hosts:index')
modal_header = _("Update Host")
def get_initial(self):
initial = super(UpdateView, self).get_initial()

View File

@ -61,6 +61,7 @@ class UpdateView(forms.ModalFormView):
form_class = project_forms.UpdateForm
template_name = 'project/leases/update.html'
success_url = reverse_lazy('horizon:project:leases:index')
modal_header = _("Update Lease")
def get_initial(self):
initial = super(UpdateView, self).get_initial()