No crash but not datapicker (To fix)

This commit is contained in:
Jean-Baptiste Doderlein 2023-11-09 12:30:21 +01:00
parent bf0afc4fc5
commit 558350d05b
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<input
type="{{ widget.type }}"
name="{{ widget.name }}"
{% if widget.value != None and widget.value != "" %}
value="{{ widget.value }}"
{% endif %}
{% for name, value in widget.attrs.items %}
{% if value != False %}
{{ name }}
{% if value != True %}
="{{ value|stringformat:'s' }}"
{% endif %}
{% endif %}
{% endfor %} />