[openstack-dev] [Horizon] Changing success_url at runtime.

Naik, Chinmay cnaik at paypal.com
Fri Feb 22 23:16:20 UTC 2013


Hi All,

Wanted to know if there is a way to change the success_url attribute in my view (inheriting from forms.ModalFormView) based on a specific user input, selected on the corresponding form ?

Using my new view, user will be displayed a form(inheriting from forms.SelfHandlingForm) with a drop down list. The user selects a value in the drop down list which can be known in the handle() of that form. Depending on what user selected, how can I change the 'success_url' attribute of my view to take him to different urls depending on the input selected. Is it possible to change the 'success_url' from the forms handle() func ?

Any help is much appreciated. Thanks for your time.

Thanks,
Chinmay Naik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130222/8412d699/attachment.html>


More information about the OpenStack-dev mailing list