1
0
Fork 0

fix: allow arbitrary kwargs for Form.render_vue_field()

for tailbone compat
This commit is contained in:
Lance Edgar 2024-08-15 15:02:12 -05:00
parent be8a45e543
commit 17b8af27a7

View file

@ -811,7 +811,12 @@ class Form:
output = render(template, context)
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
with label and containing a widget.
@ -827,6 +832,12 @@ class Form:
message="something went wrong!">
<!-- widget element(s) -->
</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
if readonly is None: