summaryrefslogtreecommitdiff
path: root/django/contrib/admin
AgeCommit message (Collapse)Author
2020-04-15Fixed #31462 -- Allowed overriding autocomplete/raw_id_fields/filter widgets ↵007
for ManyToManyFields with formfield_overrides.
2020-03-27Fixed #31404 -- Changed selector-chosen's multiple attribute to HTML5 ↵zriv
boolean syntax.
2020-03-25Fixed #29724 -- Fixed timezone handling in ModelAdmin.date_hierarchy queries.Hasan Ramezani
Thanks Alexander Holmbäck for the initial patch.
2020-03-24Fixed #31391 -- Removed jQuery usage in cancel.jsJon Dufresne
Now that cancel.js has no dependencies, it can be loaded asynchronously. Co-Authored-By: François Freitag <mail@franek.fr>
2020-03-24Fixed #31365 -- Removed jQuery usage in SelectFilter2.js.Jon Dufresne
2020-03-23Refs #31032 -- Removed unsupported browsers workarounds and comments in ↵Jon Dufresne
admin's JavaScript. Since 8b30360322d4de6687e17ab267a856db4e3c78a6, the admin documentation is explicit that only modern evergreen browsers are supported. This allows removing several long standing workarounds for IE and Opera older versions. Since 2013, Opera is based on the Chromium blink engine.
2020-03-17Removed unused return values in SelectFilter2.js.Jon Dufresne
2020-03-17Simplified SelectFilter2 with Element.closest().Jon Dufresne
https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
2020-03-16Fixed #31361 -- Fixed invalid action="" in admin forms.Jon Dufresne
The attribute action="" (empty string) on the <form> element is invalid HTML5. The spec (https://html.spec.whatwg.org/#attr-fs-action) says: > The action and formaction content attributes, if specified, must have > a value that is a valid non-empty URL potentially surrounded by > spaces. Emphasis on non-empty. The action attribute is allowed to be omitted, in which case the current URL is used which is the same behavior as now.
2020-03-09Fixed #31349 -- Used :nth-child() CSS pseudo-class to style alternative rows ↵Jon Dufresne
in admin.
2020-02-27Fixed #31307 -- Fixed filter_horizontal add/remove SVG :hover positioning.007gzs
2020-02-19Fixed #31187 -- Fixed detecting of existing total ordering in admin ↵Fabio Sangiovanni
changelist when using Meta.constraints. Detection of existing total ordering in admin changelist now takes into account non-partial unique constraints.
2020-02-04Simplified imports from django.db and django.contrib.gis.db.Nick Pope
2020-01-31Updated translations from Transifex.Claude Paroz
Forwardport of ca4f87027e2ed32cb272a1823c9ce4104b02d830 from stable/3.0.x
2020-01-29Used model's Options.label/label_lower where applicable.Mariusz Felisiak
2020-01-24Refs #27888 -- Removed redundant {% if %} in admin changelist filters.Hasan Ramezani
2020-01-23Fixed #27888 -- Added link to clear all filters in the admin changelist view.Hasan Ramezani
2020-01-17Optimized ModelAdmin._changeform_view() by avoiding multiple get_fieldsets() ↵Daniel Hahler
calls. Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2020-01-13Fixed #31160 -- Fixed admin CSS for ordered lists' descendants in unordered ↵Owen T. Heisler
list.
2020-01-10Fixed #30980 -- Improved error message when checking uniqueness of admin ↵Adam Donaghy
actions' __name__. Thanks Keshav Kumar for the initial patch.
2020-01-03Fixed #28991 -- Added EmptyFieldListFilter class in admin.filters.Federico Jaramillo Martínez
Thanks Simon Charette and Carlton Gibson for reviews. Co-Authored-By: Jonas Haag <jonas@lophus.org> Co-Authored-By: Christophe Baldy <christophe.baldy@polyconseil.fr>
2019-12-30Fixed #30892 -- Fixed slugify() and admin's URLify.js for "İ".Sjbrgsn
Thanks Luis Nell for the implementation idea and very detailed report. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-12-30Fixed #30819 -- Fixed year determination in admin calendar widget for ↵Farhaan Bukhsh
two-digit years. Two-digit years in the range of [00, 68] are in the current century, while [69,99] are in the previous century, according to the Open Group Specification.
2019-12-18Refs #30585 -- Updated project templates and tests to use (block)translate tags.Mike Hansen
2019-12-11Fixed #31080 -- Removed redundant type="text/javascript" attribute from ↵Jon Dufresne
<script> tags.
2019-12-02Refs #29892 -- Made Selenium tests wait for popups to be ready.Jon Dufresne
2019-12-02Updated contrib translations from Transifex.Carlton Gibson
Forward port of 4afa0e5d2a7c723a11d06434706810224651c50b from stable/3.0.x
2019-12-02Fixed CVE-2019-19118 -- Required edit permissions on parent model for ↵Carlton Gibson
editable inlines in admin. Thank you to Shen Ying for reporting this issue.
2019-11-28Fixed #31028 -- Used classList API to check, add and remove DOM classes.Jon Dufresne
Thanks to Claude Paroz for review.
2019-11-28Fixed #31042 -- Removed AdminSeleniumTestCase.get_css_value() in favor of ↵Jon Dufresne
Selenium .is_displayed(). All instances of AdminSeleniumTestCase.get_css_value() were used to inspect the display property.
2019-11-27Fixed #30975 -- Replaced custom get_select_option with Selenium's ↵Johannes Hoppe
select_by_value.
2019-11-27Fixed #30973 -- Converted selenium tests wait_page_loaded to context manager.Johannes Hoppe
2019-11-27Fixed #31027 -- Replaced .getAttribute()/.setAttribute() usage with DOM ↵Jon Dufresne
properties.
2019-11-26Fixed #31031 -- Fixed data loss in admin changelist view when formset's ↵Baptiste Mispelon
prefix contains regex special chars. Regression in b18650a2634890aa758abae2f33875daa13a9ba3.
2019-11-25Fixed #31013 -- Removed jQuery usage in SelectBox.js.Johannes Hoppe
2019-11-19Fixed #30981 -- Fixed admin changelist crash when using F() or OrderBy() ↵Hasan Ramezani
expressions in admin_order_field.
2019-11-19Fixed #27272 -- Added an on_delete RESTRICT handler to allow cascading ↵Daniel Izquierdo
deletions while protecting direct ones.
2019-11-06Removed unused import of ACTION_CHECKBOX_NAME in django.contrib.admin.Mariusz Felisiak
Unused since e651b3095c950627b1eed1527f2bb011ddad03de.
2019-11-05Fixed #30947 -- Changed tuples to lists in model Meta options in ↵Jon Dufresne
django.contrib modules. The Django "Model Meta options" docs provide examples and generally point the reader to use lists for the unique_together and ordering options. Follow our own advice for contrib models. More generally, lists should be used for homogeneous sequences of arbitrary lengths of which both unique_together and ordering are.
2019-11-04Simplified consecutive calls to pathlib.Path.parent.Jon Dufresne
2019-10-29Fixed #30922 -- Fixed ModelAdmin.date_hierarchy queries with DST changes.Erwin Junge
There was an issue where admin date_hierarchy didn't render last day of a month in DST-switch month.
2019-10-29Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani
2019-10-25Fixed #29087 -- Added delete buttons for unsaved admin inlines on validation ↵Carlton Gibson
error.
2019-10-25Refs #29087 -- Refactored admin inlines.js.Carlton Gibson
Split logic into separate functions to clarify and allow reuse.
2019-10-09Fixed #30856 -- Combined fast-delete queries by model during cascade deletion.Simon Charette
Reduced the number of queries required when performing cascade deletion for a model referenced multiple time by another one by performing an union of reference lookups.
2019-09-17Fixed #30725 -- Fixed width of DateTimeField inputs in admin tabular inline.Min ho Kim
"width" of DateTimeField inputs in admin tabular inline wasn't set correctly what caused displaying too small inputs with responsive CSS when timezone warning wasn't present.
2019-09-16Fixed #29376 -- Allowed hiding "Save and Add Another" button in admin.Hasan Ramezani
2019-09-08Updated translation catalogsClaude Paroz
2019-08-28Adjusted subprocess.run() calls to use arg list, rather than string. Jon Dufresne
The Python docs recommend passing a sequence to subprocess.run() when possible. Doing so allows for automatic escaping and quoting of arguments. https://docs.python.org/3/library/subprocess.html#frequently-used-arguments > args is required for all calls and should be a string, or a sequence > of program arguments. Providing a sequence of arguments is generally > preferred, as it allows the module to take care of any required > escaping and quoting of arguments (e.g. to permit spaces in file > names). Also removed `shell=True` where unnecessary.
2019-08-27Fixed #30722 -- Added default rate-limiting requests to admin's Select2 widget.Federico Jaramillo Martínez