{% extends "detail.html" %} {% block content %} {% if object.voltage is not None %} {% endif %} {% if object.chemistry is not None %} {% endif %} {% if object.compatible_with is not None %} {% endif %} {% if history %} {% endif %}
Battery name {{ object.name }}
Voltage {{ object.voltage }}V
Chemistry {{ object.chemistry }}
Compatible with
    {% for compat in object.compatible_with.all %}
  • {{ compat }}
  • {% endfor %}
Edit history {% include "history.html" %}
{% endblock %}