[Answered ]-ModelForm and field generation

1👍

Do you mean something like this?:

contact_type = forms.ModelChoiceField(queryset=ContactType.objects.all())

More about ModelChoiceField on Django’s documentation

👤César

1👍

You’re looking for forms.ModelChoiceField

Leave a comment