1
If the variables somatorio.3
and somatorio.2
are presenting the value None
, you can use the filter default_if_none
to translate them to zero.
In your case it would look like this:
<td class="text-center">{{ somatorio.3|default_if_none:"0" }}({{ somatorio.2|default_if_none:"0" }})</td>
It is more difficult to verify your problem when placing code as image. Could you edit your question by pasting the JS code? (This can be done by clicking on the paper image with <> next to insert image)
– Gustavo Fragoso