8.4 Creating a New Template to Delete Tag
Objects
Unlike the template for creating or deleting Tag
objects, the form for deleting Tag
objects doesn’t need to take any information and therefore doesn’t need to display TagForm
. Instead, we’re creating a template that asks the user for confirmation of the removal of data.
We start by extending the base app template, and overriding the title
and content
blocks, as shown in Example 8.29.
organizer/templates/organizer/tag_confirm_delete.html
in 7a857b7c54
1 {% extends parent_template|default:"organizer/base_organizer.html" %} 2 3 {% block title %} 4 {{ block.super }} - Delete Tag 5 {% endblock %} 6 7 {% block content %} . ... ...
Get Django Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.