Django form fields not well supported #113
Labels
django
Related to Django templates capabilities
enhancement
New feature or request
help wanted
Extra attention is needed
Milestone
If a template contains
{% for field in form %}
or even{% if form %}
, then it's easy enough to render in django-pattern-library so long as we force the form to be null in the YAML context, and are happy not to have the form.If the form is rendered explicitly by field names, then it requires a lot more work, and support for this is not documented. I had a quick go, but my template has things like:
and that template has a custom filter:
{{ field|field_type }}
which necessitated YAML like:I didn't go much further, because these is even more convoluted markup in my chosen template, and it wasn't a high enough priority.
The text was updated successfully, but these errors were encountered: