Re: Specifying Select Widget Options

2011-02-10 Thread Lex Hider
On 10/02/11 09:04, hank23 wrote: Is there anyway in a form definition to specify how the options for a select widget are to be coded when they're be generated automatically? Specifically is there a way to specify where the value and the displayed data attributes of the generated options are to pu

Specifying Select Widget Options

2011-02-09 Thread hank23
Is there anyway in a form definition to specify how the options for a select widget are to be coded when they're be generated automatically? Specifically is there a way to specify where the value and the displayed data attributes of the generated options are to pull that data from when they're form

Select widget options

2010-08-04 Thread Ryan Osborn
Hi, Is there a way to change the text shown in the select widget for each option? I have the following form where player2 is a foreign key to user. class MatchForm(forms.ModelForm): class Meta: model = Match fields = ['player2','result','date'] widgets = {'result': fo