diff options
Diffstat (limited to 'pgcommitfest/commitfest/views.py')
-rw-r--r-- | pgcommitfest/commitfest/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pgcommitfest/commitfest/views.py b/pgcommitfest/commitfest/views.py index ea81d64..aa9fd1a 100644 --- a/pgcommitfest/commitfest/views.py +++ b/pgcommitfest/commitfest/views.py @@ -54,8 +54,9 @@ def commitfest(request, cfid): # Figure out custom ordering ordering = ['-is_open', 'topic__topic', 'created',] - if request.GET.has_key('sortkey'): + if request.GET.has_key('sortkey') and request.GET['sortkey']!='': sortkey=int(request.GET['sortkey']) + if sortkey==1: ordering = ['-is_open', 'modified', 'created',] elif sortkey==2: |