Example:
{{{
#!python
@admin.register(X)
class XAdmin(admin.ModelAdmin):
list_display = ('a', 'b', 'c', 'field')
filter_horizontal = ('field',)
fieldsets = (
(None, {
'fields': ('a', 'b', 'c')
}),
('Other', {
'classes': ('collapse',),
'fields': ('field',)
})
)
}}}
which gets rendered as https://i.imgur.com/jZpUHYN.png
--
Ticket URL: <https://code.djangoproject.com/ticket/33024>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: Uncategorized => Bug
--
Ticket URL: <https://code.djangoproject.com/ticket/33024#comment:1>
* stage: Unreviewed => Accepted
Comment:
Hi Peter — OK, thanks. If you'd like to look at an adjustment here, that
would be great!
--
Ticket URL: <https://code.djangoproject.com/ticket/33024#comment:2>
* cc: Shubh Parmar (added)
* owner: nobody => Shubh Parmar
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/33024#comment:3>
Comment (by Shubh Parmar):
PR: [https://github.com/django/django/pull/15096]
--
Ticket URL: <https://code.djangoproject.com/ticket/33024#comment:4>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/33024#comment:5>
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/33024#comment:6>
* Attachment "ticket_33024.diff" added.
Comment (by Shubh Parmar):
I think we can solve this issue with just CSS. In that case, we don't need
to write javascript for calculating the height of select boxes. I have
uploaded a git diff file. Let me know whether this is okay or not.
--
Ticket URL: <https://code.djangoproject.com/ticket/33024#comment:7>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/33024#comment:8>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"51c24d8799fb09f04d0a5deb713eaeceb20d15c7" 51c24d87]:
{{{
#!CommitTicketReference repository=""
revision="51c24d8799fb09f04d0a5deb713eaeceb20d15c7"
Fixed #33024 -- Fixed height of admin selector boxes in collapsed
fieldset.
Thanks Tom Carrick for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33024#comment:9>