Mercurial > public > sg101
diff gpp/contests/urls.py @ 567:0a8e6a9ccf53
Tweaks to the contests application: show the winners on the list page.
Minor presentation changes on the detail template.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 07 Mar 2012 18:12:02 -0600 |
parents | 51fa1e0ca218 |
children | ddd69a8e07c7 |
line wrap: on
line diff
--- a/gpp/contests/urls.py Sun Mar 04 14:52:24 2012 -0600 +++ b/gpp/contests/urls.py Wed Mar 07 18:12:02 2012 -0600 @@ -12,7 +12,7 @@ url(r'^$', ListView.as_view( context_object_name='contests', - queryset=Contest.public_objects.all()), + queryset=Contest.public_objects.select_related('winner')), name='contests-index'), url(r'^enter/$',