1👍
✅
you can use jinja in your template
{% if object.frontcamera is not none %}
<p>FRONT CAMERA: <span class="spec"> {{ object.frontcamera }} </span></p>
{% else %}
do nothing
{% endif %}
{% if object.backcamera is not none %}
<p>FRONT CAMERA: <span class="spec"> {{ object.backcamera }} </span></p>
{% else %}
do nothing
{% endif %}
Source:stackexchange.com