We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2981324 commit a870676Copy full SHA for a870676
starlette_admin/templates/forms/enum.html
@@ -11,7 +11,7 @@
11
<option></option>
12
{% endif %}
13
{% for value, label in field._get_choices(request) %}
14
- <option value="{{ value }}" {{ 'selected' if (data and (value in (data if field.multiple else [data]))) else '' }}>{{ label }}
+ <option value="{{ value }}" {{ 'selected' if (data is not none and (value in (data if field.multiple else [data]))) else '' }}>{{ label }}
15
</option>
16
{% endfor %}
17
</select>
0 commit comments