summaryrefslogtreecommitdiff
path: root/django/contrib/admin/helpers.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34045 -- Improved accessibility of selecting items in admin changelist.Durval Carvalho2023-02-161-3/+0
| | | | This adds "aria-label".
* Used more augmented assignment statements.Nick Pope2022-10-311-2/+2
| | | | | | Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
* Removed unused InlineAdminForm.ordering_field().Mariusz Felisiak2022-08-091-5/+0
| | | Unused since its introduction in a19ed8aea395e8e07164ff7d85bd7dff2f24edca.
* Fixed #33348 -- Changed ↵Baptiste Mispelon2022-04-061-2/+1
| | | | | | | SimpleTestCase.assertFormError()/assertFormsetErrors() to take form/formset. Instead of taking a response object and a context name for the form/formset, the two methods now take the object directly.
* Refs #33348 -- Improved messages raised by ↵Baptiste Mispelon2022-02-151-0/+4
| | | | | | | SimpleTestCase.assertFormError()/assertFormsetErrors(). This makes messages use BaseFormSet/BaseForm.__repr__() instead of context, and adds the _assert_form_error() helper.
* Refs #33348 -- Made SimpleTestCase.assertFormsetErrors() raise an error when ↵Baptiste Mispelon2022-02-141-0/+4
| | | | form_index is too big.
* Refs #33348 -- Made SimpleTestCase.assertFormError()/assertFormsetErrors() ↵Baptiste Mispelon2022-02-141-0/+8
| | | | raise an error for unbound forms/formsets.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-91/+191
|
* Fixed #33077 -- Fixed links to related models for admin's readonly fields in ↵Ken Whitesell2021-09-181-1/+5
| | | | custom admin site.
* Fixed #31867 -- Made TabularInline handling of hidden fields with view-only ↵antoinehumbert2021-09-101-1/+11
| | | | permissions consistent with StackedInline.
* Refs #24121 -- Added __repr__() to AdminForm, BlockContext, ↵saeedblanchette2021-06-101-0/+7
| | | | BlockTranslateNode, and IncludeNode.
* Fixed #31181 -- Added links to related models for admin's readonly fields.Julien Rebetez2020-10-081-2/+21
|
* Fixed #31524 -- Removed minified static assets from the admin.Jon Dufresne2020-05-141-3/+1
|
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-1/+1
|
* Fixed #30520 -- Fixed crash of admin model inlines on custom fields without ↵Jones Ambrosi2019-06-041-2/+7
| | | | labels.
* Fixed #30221 -- Made label suffix of admin's read-only fields translatable.Etienne Chové2019-02-281-1/+1
|
* Fixed #29953 -- Added CSS class to column headers in tabular inlines.redodo2018-11-201-0/+2
| | | | The class name is the same as one given to the fields in the change list.
* Fixed CVE-2018-16984 -- Fixed password hash disclosure to admin "view only" ↵Carlton Gibson2018-10-011-0/+6
| | | | | | users. Thanks Claude Paroz & Tim Graham for collaborating on the patch.
* Fixed #29682 -- Fixed admin change form crash if a view-only model's form ↵Tim Graham2018-08-201-1/+1
| | | | has an extra field.
* Fixed #29523 -- Removed jQuery usage in DateTimeShortcuts.js & collapse.js.Claude Paroz2018-07-201-6/+1
|
* Fixed #29414 -- Restored form inputs on admin inlines when the user doesn't ↵Paulo Alvarado2018-05-181-3/+4
| | | | | have the change permission. Regression in 825f0beda804e48e9197fcf3b0d909f9f548aa47.
* Fixed #8936 -- Added a view permission and a read-only admin.olivierdalang2018-05-161-8/+19
| | | | | Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com>
* Fixed #29184 -- Made TabularInline respect model form's Meta.labels and ↵Hasan Ramezani2018-03-171-3/+6
| | | | help_texts.
* Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов2018-01-121-3/+2
| | | | continue statements.
* Fixed #28984 -- Made assorted code simplifications.Tim Graham2018-01-031-10/+9
|
* Fixed #28930 -- Simplified code with any() and all().Дилян Палаузов2017-12-261-4/+4
|
* Fixed #28866 -- Made InlineAdminFormSet include InlineModelAdmin's Media ↵Vasiliy Bolshakov2017-11-301-1/+1
| | | | | | before its formset's Media. This provides better backwards compatibility following refs #28377.
* Fixed #28377 -- Made combining form Media retain relative asset order.Johannes Hoppe2017-07-201-1/+1
| | | Thanks Florian Apolloner, Mariusz Felisiak, and Tim Graham for reviews.
* Fixed #27967 -- Fixed KeyError in admin's inline form with inherited ↵Paulo2017-06-121-1/+1
| | | | | | non-editable pk. Thanks Robin Anupol for the initial report and workaround.
* Refs #27795 -- Removed unneeded force_text callsClaude Paroz2017-03-041-6/+3
| | | | Thanks Tim Graham for the review.
* Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz2017-02-071-3/+3
| | | | Thanks Tim Graham for the review.
* Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.Anton Samarchyan2017-02-041-3/+1
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-3/+3
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-6/+6
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-3/+2
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Refs #25135 -- Removed support for the contrib.admin allow_tags attribute.Tim Graham2017-01-171-13/+1
| | | | Per deprecation timeline.
* Fixed #27532 -- Deprecated Model._meta.has_auto_fieldAdam Chainz2016-11-251-2/+2
|
* Fixed E305 flake8 warnings.Ramin Farajpour Cami2016-11-141-0/+1
|
* Fixed #27266 -- Allowed using assertFormError()/assertFormsetError() in ↵Tim Graham2016-09-271-0/+16
| | | | | admin forms and formsets. Thanks Diego Andrés Sanabria Martín for the report and review.
* Fixed #27216 -- Corrected import location in admin deprecation messages.Jeff Willette2016-09-131-2/+2
|
* Replaced smart_* by force_* calls whenever possibleClaude Paroz2016-09-031-2/+2
| | | | | The smart_* version should only be used when a lazy string should keep its lazy status.
* Replaced property() usage with decorator in several places.Berker Peksag2016-08-251-6/+6
|
* Fixed #26729 -- Allowed overriding a form field's label/help_text in ↵Paulo2016-06-211-1/+1
| | | | Form.__init__() for TabularInline.
* Fixed E128 flake8 warnings in django/.Tim Graham2016-04-081-34/+46
|
* Fixed #25465 -- Restored line breaks conversion in admin readonly fields.Alexander Gaevsky2015-12-291-0/+1
|
* Fixed #494 -- Added ability to specify classes on admin inline fieldsets.Karen Tracey2015-12-211-0/+1
| | | | | This includes the ability to collapse inlines by specifying a class named 'collapse'.
* Fixed #21221 -- Made form Media and static template tag use staticfiles if ↵Johannes Hoppe2015-12-101-2/+1
| | | | installed.
* Fixed #25165 -- Removed inline JavaScript from the admin.Thomas Grainger2015-12-051-1/+15
| | | | | | | This allows setting a Content-Security-Policy HTTP header (refs #15727). Special thanks to blighj, the original author of this patch.
* Fixed #24976 -- Fixed missing form label in tabular inline.matiasb2015-10-211-1/+10
| | | | | If the model form had a form field specified, the label rendered as "None".