{% extends 'core/base.html' %} {% load widget_tweaks %} {% block title %} {% if request.resolver_match.url_name == 'diaperchange-update' %} Update a Diaper Change {% else %} Add a Diaper Change {% endif %} {% endblock %} {% block content %} {% if object %}