add
This commit is contained in:
@@ -56,7 +56,15 @@ class ResultCreateView(CreateView):
|
||||
success_url = '/boatmovers/'
|
||||
|
||||
def boatmovers_view(request):
|
||||
athletes = Athlete.objects.filter(trueskill_exposed__gt=0).order_by('-trueskill_exposed','-birth_year','last_name','first_name')
|
||||
athletes = Athlete.objects.filter(trueskill_exposed__gt=0,
|
||||
dummy=False).order_by('-trueskill_exposed','-birth_year','last_name','first_name')
|
||||
|
||||
filter = request.GET.get('filter','all')
|
||||
|
||||
if filter == 'm':
|
||||
athletes = athletes.exclude(gender='f')
|
||||
elif filter == 'f':
|
||||
athletes = athletes.exclude(gender='m')
|
||||
|
||||
races = Race.objects.filter(verified=True,processed=True).order_by('-date')
|
||||
new_races = Race.objects.filter(processed=False).order_by('date')
|
||||
|
||||
Reference in New Issue
Block a user