Merge "Fix a bug in "Add Interface" form modal"

This commit is contained in:
Jenkins 2015-09-12 15:14:51 +00:00 committed by Gerrit Code Review
commit 015fb6d94a

View File

@ -57,7 +57,7 @@ class AddInterfaceView(forms.ModalFormView):
def get_initial(self):
router = self.get_object()
return {"router_id": self.kwargs['router_id'],
"router_name": router.name}
"router_name": router.name_or_id}
class SetGatewayView(forms.ModalFormView):