#24784 closed Bug (fixed)
Admin interface ForeignKey field select widget partially hidden in Firefox
Reported by: | David Hobbs | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 1.8 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
This problem appeared in Django 1.8 (it remains in 1.8.1) -- it's fine in 1.7.8. The size of the "related-widget-wrapper" is too narrow, and the select widget overflow gets hidden. This is in Firefox 37 -- it doesn't get hidden in Chrome (I didn't try other browsers), but I think the layout of objects within the wrapper did change in Chrome.
Attachments (3)
Change History (12)
by , 10 years ago
Attachment: | Screen-2015-05-11_13-47.png added |
---|
by , 10 years ago
Attachment: | Screen-2015-05-11_13-50.png added |
---|
Django 1.8.1 related-widget-wrapper too narrow
comment:1 by , 10 years ago
It looks like it only happens when the ForeignKey field is in a row with other fields.
follow-up: 3 comment:2 by , 10 years ago
How do you make the ForeignKey
field appear in a row with other fields?
comment:3 by , 10 years ago
Replying to timgraham:
How do you make the
ForeignKey
field appear in a row with other fields?
In admin.py, for example:
fieldsets = ( (None, {'fields': (('status', 'created', 'modified'),)}), )
And 'status' is a ForeignKey
.
follow-up: 5 comment:4 by , 10 years ago
I tried to reproduce using the tutorial, but the "Poll" selector appears fine. Does this code reproduce the problem for you? Tested on Ubuntu 14.04 and Firefox 38.
class ChoiceAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['poll', 'votes']}), ]
comment:5 by , 10 years ago
Replying to timgraham:
I tried to reproduce using the tutorial, but the "Poll" selector appears fine. Does this code reproduce the problem for you? Tested on Ubuntu 14.04 and Firefox 38.
class ChoiceAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['poll', 'votes']}), ]
Using the tutorial I was able to reproduce with:
class ChoiceAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': [('question', 'votes')]}), ]
Note the parens around the two fields to put them on the same line. This is on Windows 7 w/ Firefox 37.
comment:6 by , 10 years ago
Severity: | Normal → Release blocker |
---|---|
Triage Stage: | Unreviewed → Accepted |
Django 1.7.8 in Firefox 37