Changeset 870992c
- Timestamp:
- Apr 15, 2013, 3:56:00 AM (13 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- 35280b4
- Parents:
- b8172c8
- git-author:
- Alex Dehnert <adehnert@…> (04/15/13 03:56:00)
- git-committer:
- Alex Dehnert <adehnert@…> (04/15/13 03:56:00)
- Location:
- asadb
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/forms/views.py
rc3a5618 r870992c 564 564 # Midway # 565 565 ########## 566 567 568 class View_Midways(ListView): 569 context_object_name = "midway_list" 570 template_name = "midway/midway_list.html" 571 572 def get_queryset(self): 573 midways = forms.models.Midway.objects.order_by('date') 574 return midways 575 576 def get_context_data(self, **kwargs): 577 context = super(View_Midways, self).get_context_data(**kwargs) 578 context['pagename'] = 'midway' 579 return context 566 580 567 581 def midway_map_latest(request, ): -
asadb/template/index.html
r1cfab5a r870992c 44 44 <li><a href='{%url fysm-select%}'>Submit an entry</a></li> 45 45 </ul></li> 46 <li> Midway assignments: <a href='{% url midway-map-latest %}'>map</a></li>46 <li><a href='{% url midway-list %}'>Midways</a>: <a href='{% url midway-map-latest %}'>latest map</a></li> 47 47 <li>Membership updates<ul> 48 48 <li><a href='{%url membership-update-cycle %}'>Group update</a></li> -
asadb/urls.py
r1cfab5a r870992c 74 74 75 75 # Midway 76 url(r'^midway/$', forms.views.View_Midways.as_view(), name='midway-list', ), 76 77 url(r'^midway/latest/$', forms.views.midway_map_latest, name='midway-map-latest', ), 77 78 url(r'^midway/(?P<slug>[\w-]+)/$', forms.views.MidwayMapView.as_view(), name='midway-map', ),
Note: See TracChangeset
for help on using the changeset viewer.