0
template.htmlпроблема, если условие цикла
В Джанго возможно проверить состояние, как это, я получаю сообщение об ошибке в этой строке (incident.other_location или место нахождения).
{%if newreport_tab and reportperson and incident.manual_date and media and followup and (incident.other_location or location) and incident.other_incident_type and types%}<a href="{% url incident.views.savereport %}">{% include "buttons/saveandclose.html" %}</a>{%else%}{% include "buttons/saveandclose.html" %}{%endif%}
Я получаю эту ошибку
"TemplateSyntaxError at /report/savereport/
Could not parse the remainder: '(incident.other_location' from 'and(incident.other_location'"