Newbie Django question: I\'d like the Django admin to display more rows of choices in the multi-select widget. I have an extremely long list to select from and the default 4
If you have a long select that will keep growing, I recommend to use an autocomplete widget.
Anyway, you could:
Create a ModelForm, for the model in question
Override the default widget, for the field in question,
Set widget's size attribute to your needs
Enable that form in ModelAdmin, for example
class YourModelForm(forms.ModelForm):
class Meta:
model = YourModel
widgets = {
'your_field': forms.SelectMultiple(attrs={'size': 12})
}
class YourModelAdmin(admin.ModelAdmin):
form = YourModelForm