Fix form ref bug, for batch execution

This commit is contained in:
Lance Edgar 2021-12-07 16:18:56 -06:00
parent 095afcde24
commit 6fc666e221

View file

@ -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'