Permalink
Browse files

Having the awarded submissions appear first in the paginated lists at…

… /entries/ and category pages
  • Loading branch information...
rossbruniges committed Mar 4, 2013
1 parent 3ce857c commit c1c2e412df04d40bc1e5c4bf7f793f54652ce824
Showing with 3 additions and 3 deletions.
  1. +3 −3 gameon/submissions/views.py
@@ -79,11 +79,11 @@ def edit_entry(request, slug, template='submissions/edit.html'):
def list(request, category='all', template='submissions/list.html'):
page_number = get_page(request.GET)
- if category == 'all':
- entry_set = Entry.objects.all().order_by('-pk')
+ if category == 'all':
+ entry_set = Entry.objects.all().order_by('-award')
page_category = False
else:
- entry_set = Entry.objects.filter(category__slug=category).order_by('-pk')
+ entry_set = Entry.objects.filter(category__slug=category).order_by('-award')
# throwing a 404 is MUCH better than a 500 eh?
try:
page_category = Category.objects.get(slug=category)

0 comments on commit c1c2e41

Please sign in to comment.