Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
566:4b9970ad0edb | 567:0a8e6a9ccf53 |
---|---|
10 | 10 |
11 urlpatterns = patterns('', | 11 urlpatterns = patterns('', |
12 url(r'^$', | 12 url(r'^$', |
13 ListView.as_view( | 13 ListView.as_view( |
14 context_object_name='contests', | 14 context_object_name='contests', |
15 queryset=Contest.public_objects.all()), | 15 queryset=Contest.public_objects.select_related('winner')), |
16 name='contests-index'), | 16 name='contests-index'), |
17 | 17 |
18 url(r'^enter/$', | 18 url(r'^enter/$', |
19 'contests.views.enter', | 19 'contests.views.enter', |
20 name='contests-enter'), | 20 name='contests-enter'), |