Fix N1K Profile creation

Missing reverse call in a modal form refactor
(https://review.openstack.org/#/c/156302/) has broken the N1k create
view. This patch addresses the missing reverse.

Change-Id: I3d0656893f37afb6e26d448bce7cd44d23fe8705
Closes-Bug: 1425008
This commit is contained in:
Rob Cresswell
2015-02-24 10:40:38 +00:00
parent bf7e106d7f
commit 372a9e55a7

View File

@@ -107,7 +107,8 @@ class CreateNetworkProfileView(forms.ModalFormView):
modal_header = _("Create Network Profile")
template_name = 'router/nexus1000v/create_network_profile.html'
submit_label = _("Create Network Profile")
submit_url = "horizon:router:nexus1000v:create_network_profile"
submit_url = reverse_lazy(
"horizon:router:nexus1000v:create_network_profile")
success_url = reverse_lazy('horizon:router:nexus1000v:index')
page_title = _("Create Network Profile")