diff options
author | Madhusudan.C.S | 2011-02-08 23:05:32 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-02-08 23:05:32 +0530 |
commit | fbccebb008075dab981cc338f42e86d9457438c5 (patch) | |
tree | b7a5c15d84582cc33c150b3f9c60d3aaf616746a | |
parent | 0c6b59c0e34a1c665b006435d7d095cd521ee3fd (diff) | |
download | pytask-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-x | pytask/taskapp/views/textbook.py | 2 |
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 |