Hello, I have a form (in django 1.8) with a field that uses a ModelChoicefield
class MyForm(forms.Form):
...
campoA = forms.ModelChoiceField(
queryset=ModeloB.objects.values_list('campoA__name', flat=True).distinct(),
label=_('Campo A'),
required=False)
...
This is shown as follows:
I would like 2 things:
Edited
I solved part 2 with the definition of empty_label, could you help me with the first doubt? so that the None option is not visible?