summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-02-08 23:05:32 +0530
committerMadhusudan.C.S2011-02-08 23:05:32 +0530
commitfbccebb008075dab981cc338f42e86d9457438c5 (patch)
treeb7a5c15d84582cc33c150b3f9c60d3aaf616746a
parent0c6b59c0e34a1c665b006435d7d095cd521ee3fd (diff)
downloadpytask-fbccebb008075dab981cc338f42e86d9457438c5.tar.gz
pytask-fbccebb008075dab981cc338f42e86d9457438c5.tar.bz2
pytask-fbccebb008075dab981cc338f42e86d9457438c5.zip
Order the child tasks according to the date of creation.
The task that was created first will appear first.
-rwxr-xr-xpytask/taskapp/views/textbook.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pytask/taskapp/views/textbook.py b/pytask/taskapp/views/textbook.py
index 4e93a9a..416856c 100755
--- a/pytask/taskapp/views/textbook.py
+++ b/pytask/taskapp/views/textbook.py
@@ -104,7 +104,7 @@ def view_textbook(request, task_id, template='task/view_textbook.html'):
else:
raise http.Http404
- chapters = textbook.children_tasks.all()
+ chapters = textbook.children_tasks.all().order_by('creation_datetime')
user = request.user