30👍
✅
You can use the filter default_if_none
available since Django 1.3, it’ll only work for values that are None
.
{{ news_form.end_date|default_if_none:'' }}
Source:stackexchange.com