mirror of
https://github.com/django/django.git
synced 2025-11-19 19:24:46 +00:00
Fixed #12282 - When paginated allow selecting all items in the admin changlist.
Thanks to Martin Mahner, Rob Hudson and Zain Memon for providing inital patches and guidance. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c14937cf7a
commit
f109f36a06
7 changed files with 163 additions and 97 deletions
|
|
@ -17,6 +17,8 @@ ACTION_CHECKBOX_NAME = '_selected_action'
|
|||
|
||||
class ActionForm(forms.Form):
|
||||
action = forms.ChoiceField(label=_('Action:'))
|
||||
select_across = forms.BooleanField(label='', required=False, initial=0,
|
||||
widget=forms.HiddenInput({'class': 'select-across'}))
|
||||
|
||||
checkbox = forms.CheckboxInput({'class': 'action-select'}, lambda value: False)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue