Open radio700 opened 3 years ago
everything is ok but
but whenever i try formetting it's crushed {% if page_number >= question_list.number | add : -5 and page_number <= question_list.number | add : 5 %}
{% if page_number >= question_list.number | add : -5 and page_number <= question_list.number | add : 5 %}
it should be {% if page_number >= question_list.number|add:-5 and page_number <= question_list.number|add:5 %}
{% if page_number >= question_list.number|add:-5 and page_number <= question_list.number|add:5 %}
and this one is also same problem. {% if not user.is_authenticated %} disabled{% endif %}="disabled{% endif %}
{% if not user.is_authenticated %} disabled{% endif %}="disabled{% endif %}
it should be {% if not user.is_authenticated %}disabled{% endif %}
{% if not user.is_authenticated %}disabled{% endif %}
the space between number|add:-5 is not permitted is there any way to solve it?
number|add:-5
everything is ok but
but whenever i try formetting it's crushed
{% if page_number >= question_list.number | add : -5 and page_number <= question_list.number | add : 5 %}
it should be
{% if page_number >= question_list.number|add:-5 and page_number <= question_list.number|add:5 %}
and this one is also same problem.
{% if not user.is_authenticated %} disabled{% endif %}="disabled{% endif %}
it should be
{% if not user.is_authenticated %}disabled{% endif %}
the space between
number|add:-5
is not permitted is there any way to solve it?