fix: allow arbitrary kwargs for Form.render_vue_field()
for tailbone compat
This commit is contained in:
parent
be8a45e543
commit
17b8af27a7
|
@ -811,7 +811,12 @@ class Form:
|
||||||
output = render(template, context)
|
output = render(template, context)
|
||||||
return HTML.literal(output)
|
return HTML.literal(output)
|
||||||
|
|
||||||
def render_vue_field(self, fieldname, readonly=None):
|
def render_vue_field(
|
||||||
|
self,
|
||||||
|
fieldname,
|
||||||
|
readonly=None,
|
||||||
|
**kwargs,
|
||||||
|
):
|
||||||
"""
|
"""
|
||||||
Render the given field completely, i.e. ``<b-field>`` wrapper
|
Render the given field completely, i.e. ``<b-field>`` wrapper
|
||||||
with label and containing a widget.
|
with label and containing a widget.
|
||||||
|
@ -827,6 +832,12 @@ class Form:
|
||||||
message="something went wrong!">
|
message="something went wrong!">
|
||||||
<!-- widget element(s) -->
|
<!-- widget element(s) -->
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
Any ``**kwargs`` received from caller are ignored by this
|
||||||
|
method. For now they are allowed, for sake of backwawrd
|
||||||
|
compatibility. This may change in the future.
|
||||||
"""
|
"""
|
||||||
# readonly comes from: caller, field flag, or form flag
|
# readonly comes from: caller, field flag, or form flag
|
||||||
if readonly is None:
|
if readonly is None:
|
||||||
|
|
Loading…
Reference in a new issue