summaryrefslogtreecommitdiff
path: root/django/contrib/admin/options.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne2019-06-281-10/+10
| | | | Thanks Claude Paroz for assistance with translations.
* Removed unnecessary assignments in various code.Jon Dufresne2019-04-241-2/+1
|
* Fixed #27755 -- Added ModelAdmin.get_inlines() hook.Hasan Ramezani2019-04-171-1/+5
|
* Fixed #30289 -- Prevented admin inlines for a ManyToManyField's implicit ↵Tim Graham2019-03-301-26/+30
| | | | through model from being editable if the user only has the view permission.
* Fixed #30243 -- Simplified ModelAdmin.render_change_form()'s has_file_field.btknu2019-03-081-1/+1
|
* Fixed #30159 -- Removed unneeded use of OrderedDict.Nick Pope2019-02-061-11/+3
| | | | Dicts preserve order since Python 3.6.
* Refs #27991 -- Made obj a required argument of ↵Tim Graham2019-01-171-13/+5
| | | | | | InlineModelAdmin.has_add_permission(). Per deprecation timeline.
* Fixed #30097 -- Made 'obj' arg of InlineModelAdmin.has_add_permission() ↵MaximZemskov2019-01-111-1/+2
| | | | | | | optional. Restored backwards compatibility after refs #27991. Regression in be6ca89396c031619947921c81b8795d816e3285.
* Used 4 space hanging indent for dictionaries.Tim Graham2019-01-021-3/+5
| | | Thanks Mariusz Felisiak for auditing.
* Fixed #30050 -- Fixed InlineModelAdmin.has_change_permission() called with ↵Tim Graham2019-01-011-1/+1
| | | | | | non-None obj during add. Thanks andreage for the report and suggested fix.
* Fixed #29930 -- Allowed editing in admin with view-only inlines.Carlton Gibson2018-12-031-1/+18
| | | Co-authored-by: Tim Graham <timograham@gmail.com>
* Fixed #29929 -- Fixed admin view-only change form crash when using ↵Basil Dubyk2018-11-281-1/+2
| | | | ModelAdmin.prepopulated_fields.
* Fixed #29917 -- Stopped collecting ModelAdmin.actions from base ModelAdmins.Matthias Kestenholz2018-11-091-7/+2
|
* Fixed #29901 -- Allowed overriding an ↵Javier Matos Odut2018-10-311-9/+10
| | | | autocomplete/raw_id_fields/radio_fields widget with ModelAdmin.get_formset().
* Refs #28909 -- Simplifed code using unpacking generalizations.Sergey Fedoseev2018-09-281-3/+3
|
* Fixed #29723 -- Fixed crash if InlineModelAdmin.has_add_permission() doesn't ↵Tim Graham2018-08-301-8/+8
| | | | | | | | accept the obj argument. * Refs #27991 -- Added testing for ModelAdmin.get_inline_instances() if the inline's has_add_permission() doesn't accept 'obj'. * Fixed #29723 -- Fixed crash if InlineModelAdmin.has_add_permission() doesn't accept the obj argument.
* Fixed #29426 -- Made UUID inputs in the admin match the width of a UUID.mackong2018-08-181-0/+1
|
* Fixed #29663 -- Made admin change view redirect to changelist with view ↵Jon Dufresne2018-08-171-1/+1
| | | | permission.
* Added ModelAdmin._response_post_save() to avoid code duplication.Jon Dufresne2018-08-171-17/+9
|
* Refs #8936 -- Added ModelAdmin.has_view_or_change_permission().Jon Dufresne2018-08-161-6/+8
|
* Fixed #29637 -- Fixed admin change form crash if the user doesn’t have the ↵Clément Mangin2018-08-101-6/+8
| | | | | | add permission to a TabularInline. Regression in 825f0beda804e48e9197fcf3b0d909f9f548aa47.
* Fixed #29419 -- Allowed permissioning of admin actions.Carlton Gibson2018-06-181-11/+29
|
* Fixed #29487 -- Accounted for object level permissions when calculating ↵Paulo2018-06-151-1/+1
| | | | | | change view's read-only fields. Thanks Matthew Frazier for the report and fix.
* Fixed #23869 -- Made ModelAdmin.get_deleted_objects() use ↵Henk Kahlfuß2018-06-151-1/+1
| | | | has_delete_permission() for permissions checking.
* Refs #29419, #8936 -- Removed change permission requirement for admin actions.Carlton Gibson2018-06-131-7/+0
| | | | Partially reverted 825f0beda804e48e9197fcf3b0d909f9f548aa47.
* Refs #28462 -- Fixed 'invalid escape sequence' warning on Python 3.6+.Tim Graham2018-06-061-1/+1
|
* Fixed #28462 -- Decreased memory usage with ModelAdmin.list_editable.Adam Donaghy2018-06-011-1/+24
| | | | Regression in 917cc288a38f3c114a5440f0749b7e5e1086eb36.
* Fixed #29417 -- Corrected two admin page titles for view-only users.Ramiro Morales2018-05-231-1/+7
|
* Fixed #8936 -- Added a view permission and a read-only admin.olivierdalang2018-05-161-33/+104
| | | | | Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com>
* Fixed #27991 -- Added obj arg to InlineModelAdmin.has_add_permission().Jon Dufresne2018-04-041-4/+11
| | | | Thanks Vladimir Ivanov for the initial patch.
* Fixed #17962 -- Added ModelAdmin.get_deleted_objects().Becky Smith2018-02-241-3/+8
|
* Removed using argument from admin's get_deleted_objects().Tim Graham2018-02-241-3/+1
|
* Removed unused opts argument from admin's get_deleted_objects().Tim Graham2018-02-211-2/+3
| | | | Unused since e12b3199d0c01694ca6b09add5e0f27cadffc8ad.
* Fixed #25790 -- Allowed disable column sorting in the admin changelist.Alexander Gaevsky2018-02-071-0/+7
| | | | Thanks Ramiro Morales for completing the patch.
* Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne2018-01-211-1/+1
|
* Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов2018-01-121-7/+3
| | | | continue statements.
* Fixed #15522 -- Added ModelAdmin.delete_queryset() to customize "delete ↵Vasilis Aggelou2018-01-051-0/+4
| | | | selected objects" deletion.
* Fixed #28984 -- Made assorted code simplifications.Tim Graham2018-01-031-3/+1
|
* Fixed #28930 -- Simplified code with any() and all().Дилян Палаузов2017-12-261-5/+1
|
* Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope2017-12-111-82/+80
|
* Simplified BaseModelAdmin.lookup_allowed() a bit.Sergey Fedoseev2017-12-061-3/+2
|
* Fixed #28871 -- Fixed initialization of autocomplete widgets in "Add ↵Tim Graham2017-12-011-2/+2
| | | | | | | another" inlines. Also allowed autocomplete widgets to work on AdminSites with a name other than 'admin'.
* Fixed #26184 -- Allowed using any lookups in ModelAdmin.search_fields.Krzysztof Nazarewski2017-11-181-2/+21
| | | | Thanks Krzysztof Nazarewski for the initial patch.
* Fixed #28585 -- Calculated admin's change form multipart context variable ↵Claude Paroz2017-11-071-1/+4
| | | | | from forms and formsets Thanks Tim Graham for the review.
* Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.Sjoerd Job Postmus2017-09-201-10/+9
| | | | | | Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
* Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ↵Johannes Hoppe2017-09-181-3/+26
| | | | | | | ManyToManyField in the admin. Thanks Florian Apolloner and Tim Graham for review and contributing to the patch.
* Removed unnecessary parens in various code.Mariusz Felisiak2017-09-131-1/+1
|
* Merged isinstance() calls.Mariusz Felisiak2017-09-131-1/+1
|
* Fixed #28543 -- Prevented ManyToManyField.value_from_object() from being lazy.Tim Graham2017-08-311-4/+0
| | | | | | | Previously, it was a QuerySet which could reevaluate to a new value if the model's data changes. This is inconsistent with other Field.value_from_object() methods. This allows reverting the fix in the admin for refs #27998.
* Used OrderedDict.fromkeys() to initialize OrderedDict with None values.Sergey Fedoseev2017-08-231-2/+2
|