I have a modelform which has one field that is a ForeignKey value to a model which as 40,000 rows. The default modelform tries to create a select box with 40,000 options, wh
You need to change the widget for the base field, not the field type. I think this would work:
base
class OpBaseForm(ModelForm): base = forms.ModelChoiceField(queryset=Base.objects.all(), widget=forms.TextInput) class Meta: model = OpBase ... etc...