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.
Change-Id: I6155476738021b784ef7e643c968f1d784b15906
Closes-Bug: #1582816
(cherry picked from commit bb1547c8abcc0d0d3dc4a3199e8e8bd1b5527c12)
Reviewed: https:/ /review. openstack. org/323713 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=94d28df201f 8f0838e09f290cd 0aaf1512eea81a
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 94d28df201f8f08 38e09f290cd0aaf 1512eea81a
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 d3dc4a3199e8e8b d1b5527c12)
Closes-Bug: #1582816
(cherry picked from commit bb1547c8abcc0d0