seems to be complete now
This commit is contained in:
@@ -437,8 +437,12 @@ class UploadOptionsForm(forms.Form):
|
||||
else:
|
||||
registrations = IndoorVirtualRaceResult.objects.filter(race=therace,userid=r.id)
|
||||
|
||||
choices = [(r.id,str(r)) for r in registrations]
|
||||
choices = [(0,'---')]+choices
|
||||
if registrations.count()==0:
|
||||
race = VirtualRace.objects.get(id=raceid)
|
||||
choices = [(-int(raceid),race.name)]
|
||||
else:
|
||||
choices = [(r.id,str(r)) for r in registrations]
|
||||
choices = choices+[(0,'---')]
|
||||
|
||||
if races:
|
||||
self.fields['submitrace'].choices = choices
|
||||
|
||||
Reference in New Issue
Block a user