Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

default requires 2 arguments, 1 provided

You have an extra space which causes the error.

value="{{ form.username.value|default_if_none: '' }}"

should be
value="{{ form.username.value|default_if_none:'' }}"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #default #requires
ADD COMMENT
Topic
Name
2+1 =