diff --git a/todo/templates/todo/del_list.html b/todo/templates/todo/del_list.html index 0853751..bf2c38c 100644 --- a/todo/templates/todo/del_list.html +++ b/todo/templates/todo/del_list.html @@ -12,7 +12,7 @@
{{ list.name }} is gone.
- Return to lists + Return to lists {% else %} @@ -36,7 +36,7 @@ - Return to list: {{ list.name }} + Return to list: {{ list.name }} {% endif %} diff --git a/todo/templates/todo/list_lists.html b/todo/templates/todo/list_lists.html index 7c791c0..a2ed80a 100644 --- a/todo/templates/todo/list_lists.html +++ b/todo/templates/todo/list_lists.html @@ -23,7 +23,7 @@{{ f.title }}
- On list: {{ f.list }}
+ On list: {{ f.list }}
Assigned to: {{ f.assigned_to }} (created by: {{ f.created_by }})
Complete: {{ f.completed|yesno:"Yes,No" }}
diff --git a/todo/templates/todo/view_list.html b/todo/templates/todo/view_list.html
index e1569fb..0336ef7 100644
--- a/todo/templates/todo/view_list.html
+++ b/todo/templates/todo/view_list.html
@@ -11,7 +11,7 @@ function order_tasks(data) {
// data in a list. We pass that list as an object called "data" to a Django view
// to save the re-ordered data into the database.
- $.post("{% url todo-reorder_tasks %}", data, "json");
+ $.post("{% url 'todo-reorder_tasks' %}", data, "json");
return false;
};
@@ -118,7 +118,7 @@ $(document).ready(function() {
{% for task in task_list %}
→ Click to edit details ←
-In list: {{ task.list }}
+
In list: {{ task.list }}
Assigned to: {{ task.assigned_to.first_name }} {{ task.assigned_to.last_name }}
Created by: {{ task.created_by.first_name }} {{ task.created_by.last_name }}
Due date: {{ task.due_date }}
diff --git a/todo/urls.py b/todo/urls.py
index 25c7ce0..2c9aaa6 100644
--- a/todo/urls.py
+++ b/todo/urls.py
@@ -1,5 +1,4 @@
-from django.conf.urls.defaults import *
-from django.views.generic.simple import direct_to_template
+from django.conf.urls import *
from django.contrib.auth import views as auth_views
urlpatterns = patterns('',