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': forms.RadioSelect(), 'date': AdminDateWidget()} The select widget shows the returned value from the User models __unicode__ method, which is their username. I want to change this to display get_full_name. Is there an easy way to do this? Thanks, Ryan -- 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.