8.3 Creating a New Template to Update Tag
Objects
The form template to update Tag
objects is nearly identical to the form template to create Tag
objects. The key differences are (1) the HTML form action
attribute, where we call a get_update_url()
method on the Tag
object, and (2) the value of the submit button on the HTML form.
We thus start like any other template, by first extending the base app template, and overriding the title
and content
blocks, as in Example 8.25.
organizer/templates/organizer/tag_form_update.html
in 0874cb22bf
1 {% extends parent_template|default:"organizer/base_organizer.html" %} 2 3 {% block title %} 4 {{ block.super }} - Update Tag 5 {% endblock ...
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.