class Scorelist(forms.ModelForm): department = forms.ModelChoiceField(queryset=Department.objects.all(), empty_label=None) abonent_id = forms.ModelChoiceField(queryset=Score.objects.all(), empty_label=None) class Meta: model = Score fields = ['department' , 'abonent_id']
Обсуждают сегодня