November 2015
Beginner to intermediate
840 pages
26h 30m
English
Tag ObjectsThe 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.
Example 8.25: Project Code
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 ...
Read now
Unlock full access