Django RadioButtons with icons and not label?
Posted
by Asinox
on Stack Overflow
See other posts from Stack Overflow
or by Asinox
Published on 2010-05-15T21:20:13Z
Indexed on
2010/05/15
21:24 UTC
Read the original article
Hit count: 465
Hi guy's , i have an app that have 2 fields: company_name and logo, i'm displaying the companies like radiobutton in my Form from Model, but i want to show the logo company instead of the company label (company name)
Any idea ?
My forms:
class RecargaForm(ModelForm):
compania = forms.ModelChoiceField(queryset=Compania.objects.all(), initial=0 ,empty_label='None', widget=forms.RadioSelect())
class Meta:
model = Recarga
Thanks :)
© Stack Overflow or respective owner