I have an application that has 2 fields: company_name and logo, I show companies like radobutton in my Form from the Model, but I want to show the company of the logo 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
Thank:)
source
share