Fix form ref bug, for batch execution
This commit is contained in:
parent
095afcde24
commit
6fc666e221
|
@ -771,7 +771,7 @@ class Form(object):
|
||||||
# TODO: deprecate / remove the latter option here
|
# TODO: deprecate / remove the latter option here
|
||||||
if self.auto_disable_save or self.auto_disable:
|
if self.auto_disable_save or self.auto_disable:
|
||||||
if self.use_buefy:
|
if self.use_buefy:
|
||||||
context['form_kwargs']['ref'] = self.component_studly
|
context['form_kwargs'].setdefault('ref', self.component_studly)
|
||||||
context['form_kwargs']['@submit'] = 'submit{}'.format(self.component_studly)
|
context['form_kwargs']['@submit'] = 'submit{}'.format(self.component_studly)
|
||||||
else:
|
else:
|
||||||
context['form_kwargs']['class_'] = 'autodisable'
|
context['form_kwargs']['class_'] = 'autodisable'
|
||||||
|
|
Loading…
Reference in a new issue