diff --git a/rowers/forms.py b/rowers/forms.py index 54450443..8b8015db 100644 --- a/rowers/forms.py +++ b/rowers/forms.py @@ -722,6 +722,7 @@ from rowers.models import VirtualRace,GeoCourse def get_countries(): countries = VirtualRace.objects.order_by('country').values_list('country').distinct() countries = tuple([(c[0],c[0]) for c in countries]) + countries = countries+(('All','All'),) return countries class VirtualRaceSelectForm(forms.Form): @@ -733,5 +734,5 @@ class VirtualRaceSelectForm(forms.Form): def __init__(self, *args, **kwargs): super(VirtualRaceSelectForm, self).__init__(*args, **kwargs) self.fields['country'] = forms.ChoiceField( - choices = get_countries(), + choices = get_countries(),initial='All' ) diff --git a/rowers/templates/virtualevents.html b/rowers/templates/virtualevents.html index 22446832..b33008aa 100644 --- a/rowers/templates/virtualevents.html +++ b/rowers/templates/virtualevents.html @@ -19,10 +19,38 @@
| Date | +Event | +Country | +Course | +
|---|---|---|---|
| {{ race.startdate }} | +{{ race.name }} | +{{ race.course.country }} | +{{ race.course.name }} | +