#29045: Multiple select widget does not honor size attribute
-----------------------------------------+------------------------
Reporter: Jonah Bishop | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
I have an admin page set up for a model like so:
{{{
@admin.register(p_models.ScheduleType)
class ScheduleTypeAdmin(admin.ModelAdmin):
formfield_overrides = {
models.ManyToManyField: {'widget':
forms.SelectMultiple(attrs={'size': '30'})},
}
list_display = ('name',)
}}}
The resulting ManyToMany field has the **size** attribute set properly,
but every browser I try only shows about 8 rows (not 30, as I instructed).
I've cleared cache, and tried in multiple browsers (Chrome 63, Firefox
57). My site uses Django 1.11.9.
--
Ticket URL: <https://code.djangoproject.com/ticket/29045>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.d29d1ee83951c82986e82eab2322aa2f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.