{% extends 'base.html' %} {% load widget_tweaks %} {% block title %} {% if object %} Update invoice {{ object }} {% else %} Add new invoice {% endif %} {% endblock title %} {% block content %}