[SCM] Code for the Debian Games Parties branch, master, updated. c0accdd30f541d361857433372ca0daa9374e5e6

Paul Wise pabs at debian.org
Fri Jul 30 21:16:53 UTC 2010


The following commit has been merged in the master branch:
commit 1c84d3fe38a679797deb6937bd3f5e0d8059f5db
Author: Paul Wise <pabs at debian.org>
Date:   Fri Jul 30 17:08:17 2010 -0400

    Order the screenshots by version number in reverse.

diff --git a/screenshots/views.py b/screenshots/views.py
index b8530c2..7d05339 100644
--- a/screenshots/views.py
+++ b/screenshots/views.py
@@ -22,7 +22,7 @@ def index(request, page=1):
 		packages = paginator.page(paginator.num_pages)
 
 	for p in packages.object_list:
-		p.screenshots = p.screenshot_set.all()
+		p.screenshots = p.screenshot_set.all().order_by('-version')
 		p.claim_old = p.claim_nick and (p.claim_time-datetime.now()) >= timedelta(seconds=30)
 
 	return render_to_response('index.html', {'packages': packages, 'irc_nick': irc_nick, 'pagination': packages})

-- 
Code for the Debian Games Parties



More information about the Pkg-games-commits mailing list