I tried to use default_if_none
in username
<input type="text" class="form-control" id="username" value="{{ form.username.value|default_if_none: '' }}" name='username'>
It throw error
django.template.exceptions.TemplateSyntaxError: default_if_none requires 2 arguments, 1 provide
I did not encounter such an error before.
The documentation did not provide a hint to solve the problem.