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)
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue