On Wed, Dec 16, 2009 at 10:09 AM, Limpy <alimpaec...@gmail.com> wrote: ... > class AllStatsForm(forms.Form): > game = forms.ChoiceField(choices=GetGameChoices()) > birdies = forms.IntegerField(min_value=0, label="Number of Birdies") ...
I'm pretty sure that you can pass a callable as the value of choices, so try: ... game = forms.ChoiceField(choices=GetGameChoices) ... That is, pass the function, not what it returns. It will then be called each time the form is rendered. Bill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.