Add *args, **kwargs to ModalBackdropMixin's init method
Before this change ModalBackdropMixin called super(...).__init__()
without arguments. This imposed restrictions on what classes this
mixin could have been mixed into, i.e. only classes, that do not accept
any parameters.
This proved to be a problem for murano-dashboard, since it uses this
mixin (indirectly through ModalFormMixin) and mixes it into a class,
that accepts parameters to it's init method.
This change allows to use ModalBackdropMixin with classes that have
init methods with parameters.
Reviewed: https:/ /review. openstack. org/317628 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=bb1547c8abc c0d0d3dc4a3199e 8e8bd1b5527c12
Committed: https:/
Submitter: Jenkins
Branch: master
commit bb1547c8abcc0d0 d3dc4a3199e8e8b d1b5527c12
Author: Kirill Zaitsev <email address hidden>
Date: Tue May 17 19:59:40 2016 +0300
Add *args, **kwargs to ModalBackdropMi xin's init method
Before this change ModalBackdropMixin called super(. ..).__init_ _()
without arguments. This imposed restrictions on what classes this
mixin could have been mixed into, i.e. only classes, that do not accept
any parameters.
This proved to be a problem for murano-dashboard, since it uses this
mixin (indirectly through ModalFormMixin) and mixes it into a class,
that accepts parameters to it's init method.
This change allows to use ModalBackdropMixin with classes that have
init methods with parameters.
Change-Id: I6155476738021b 784ef7e643c968f 1d784b15906
Closes-Bug: #1582816