From 519b0c3e33c5a78554fee42a46add047e80379f5 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 10 Sep 2011 07:27:41 +0530 Subject: [PATCH] default sorts work --- itf/insidepages/views.py | 1 + itf/templates/noel/insidepage.html | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/itf/insidepages/views.py b/itf/insidepages/views.py index 28a50cd..a4849f3 100644 --- a/itf/insidepages/views.py +++ b/itf/insidepages/views.py @@ -14,6 +14,7 @@ def main(request, module_slug): 'title': m.title, 'default_tab': tabs[0], 'default_list': default_tab_list, + 'default_sorts': default_tab.get_dict()['sorts'], 'tabs': tabs[1:] }) return render_to_response("noel/insidepage.html", context) diff --git a/itf/templates/noel/insidepage.html b/itf/templates/noel/insidepage.html index 7464ff3..8d1136b 100644 --- a/itf/templates/noel/insidepage.html +++ b/itf/templates/noel/insidepage.html @@ -52,10 +52,15 @@
Order by
@@ -66,7 +71,7 @@