August 2016
Beginner to intermediate
717 pages
15h 24m
English
In this section, we will modify the page that displays the list of tasks for deleting the tasks to be carried out in AJAX. To do this, we will perform the following steps:
Delete button on the task_list page.We will add the Delete button by modifying the tasks_list.html template. To do this, you must change the for task in task loop in tasks_list as follows:
{% for task in tasks_list %} <tr id="task_{{ task.id }}"> <td><a href="{% url "task_detail" task.id %}">{{ task.title }}</a></td> <td>{{ task.description|truncatechars:25 }}</td> ...Read now
Unlock full access