{% extends 'base.html' %} {% autoescape None %} {% block content %} {% module Template( 'modules/header.html', admin=admin, heading='%s / %s' % (admin.name, 'Edit' if obj else 'Add new'), back_button=True, add_button=True, absolute_url=obj.get_absolute_url() if hasattr(obj, 'get_absolute_url') else None ) %}