Baptiste Mispelon
7873d3757d
[2.2.x] Fixed #31031 -- Fixed data loss in admin changelist view when formset's prefix contains regex special chars.
...
Regression in b18650a263
.
Backport of 52936eface
from master
2019-11-26 09:19:39 +01:00
Claude Paroz
b3f7262e6e
[2.2.x] Updated translations from Transifex
2019-06-29 16:15:53 +02:00
Markus Holtermann
2525785880
[2.2.x] Bumped minimum ESLint version to 4.18.2.
...
Backport of ad7b438002
from master.
2019-06-21 18:00:32 +02:00
Carlton Gibson
baaf187a4e
[2.2.x] Applied jQuery patch for CVE-2019-11358.
...
Backport of 34ec52269a
from master.
2019-06-03 11:38:57 +02:00
Carlton Gibson
afddabf842
[2.2.x] Fixed CVE-2019-12308 -- Made AdminURLFieldWidget validate URL before rendering clickable link.
...
Backport of deeba6d920
from master.
2019-06-03 11:37:28 +02:00
Claude Paroz
34a357d519
[2.2.x] Fixed #30459 -- Delegated hide/show JS toggle to parent div.
...
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Backport of e286987a27
from master
2019-05-17 08:04:59 +02:00
Aarni Koskela
a4095dadc4
[2.2.x] Fixed #30312 -- Relaxed admin check from django.contrib.sessions to SessionMiddleware subclasses.
...
Backport of efeceba589
from master
2019-04-26 11:51:28 +02:00
Claude Paroz
7090cbf542
[2.2.x] Updated contrib translations from Transifex
2019-04-01 11:46:01 +02:00
Tim Graham
917aa556a9
[2.2.x] Fixed #30289 -- Prevented admin inlines for a ManyToManyField's implicit through model from being editable if the user only has the view permission.
...
Backport of 8335d59200
from master.
2019-03-30 17:44:58 -04:00
Herman S
d8704a4d4f
[2.2.x] Fixed #30237 -- Made Authentication/SessionMiddleware and ModelBackend admin checks allow subclasses.
...
Backport of f976ab1b11
from master.
2019-03-14 20:36:11 -04:00
Tim Graham
d29c8ea124
[2.2.x] Refs #29523 -- Updated admin's collapse.min.js.
...
Omitted in ba83378a77
.
Backport of 93e892bb64
from master.
2019-02-27 16:28:21 -05:00
Matthias Kestenholz
d59c3fc167
[2.2.x] Fixed #30208 -- Fixed login header height and alignment in the largest breakpoint.
...
Backport of c41e6c4eb8
from master.
2019-02-25 15:00:27 -05:00
Tim Graham
ee9bd8c310
[2.2.x] Refs #30097 -- Fixed typos in InlineModelAdmin.has_add_permission() deprecation comments.
2019-01-17 18:40:11 -05:00
Simon Charette
f84ad16ba4
Refs #17198 -- Detected existing total ordering in admin changelist.
...
Appending pk is not necessary when a subset of the ordering expressions is
contained in a non-nullable unique contraint.
Related field ordering through lookups and related ordering introspection is
omitted for simplicitly purpose.
2019-01-17 16:22:14 +01:00
Claude Paroz
aa5fd84f53
Updated translation catalogs
2019-01-16 20:51:26 +01:00
Claude Paroz
87bf35abd3
Removed unexpected chars in Armenian admin translation
2019-01-15 10:43:11 +01:00
MaximZemskov
3c01fe30f3
Fixed #30097 -- Made 'obj' arg of InlineModelAdmin.has_add_permission() optional.
...
Restored backwards compatibility after refs #27991 .
Regression in be6ca89396
.
2019-01-11 18:02:43 -05:00
Claude Paroz
217f4456d8
Fetched Armenian translations from Transifex
2019-01-10 10:50:42 +01:00
Tim Graham
0004daa536
Used 4 space hanging indent for dictionaries.
...
Thanks Mariusz Felisiak for auditing.
2019-01-02 18:18:19 -05:00
Tim Graham
02c07be95c
Fixed #30050 -- Fixed InlineModelAdmin.has_change_permission() called with non-None obj during add.
...
Thanks andreage for the report and suggested fix.
2019-01-01 09:42:14 -05:00
Carlton Gibson
8245c99ee6
Fixed #29930 -- Allowed editing in admin with view-only inlines.
...
Co-authored-by: Tim Graham <timograham@gmail.com>
2018-12-03 07:44:18 -08:00
Basil Dubyk
7d1123e5ad
Fixed #29929 -- Fixed admin view-only change form crash when using ModelAdmin.prepopulated_fields.
2018-11-28 15:40:14 -05:00
redodo
2e4776196d
Fixed #29953 -- Added CSS class to column headers in tabular inlines.
...
The class name is the same as one given to the fields in the change list.
2018-11-20 18:17:53 -05:00
Sanyam Khurana
a7d6cab771
Fixed #29282 -- Prevented some admin checks from crashing with TypeError.
...
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
2018-11-20 17:19:13 -05:00
redodo
89a2216486
Fixed #29961 -- Made RelatedFieldWidgetWrapper hide related item links if wrapping a hidden widget.
2018-11-19 15:12:52 -05:00
Vishvajit Pathak
11bcb57ee2
Fixed #29964 -- Removed unused admin/related_widget_wrapper.html template.
...
Unused since b52c73008a
.
2018-11-18 11:42:48 -05:00
Hasan Ramezani
6d4e5feb79
Fixed #29835 -- Made RelatedFieldListFilter respect ModelAdmin.ordering.
2018-11-14 14:29:39 -05:00
Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)
1f726311d1
Used method chaining in DateTimeShortcuts.js.
2018-11-09 19:56:46 -05:00
Matthias Kestenholz
f9ff1df1da
Fixed #29917 -- Stopped collecting ModelAdmin.actions from base ModelAdmins.
2018-11-09 18:52:30 -05:00
Javier Matos Odut
3d4d0a25b2
Fixed #29901 -- Allowed overriding an autocomplete/raw_id_fields/radio_fields widget with ModelAdmin.get_formset().
2018-10-31 10:16:17 -04:00
Mac Chapman
fb5dfd53a7
Fixed #29832 -- Updated Roboto font to v2.137.
2018-10-11 23:30:45 -04:00
Sergey Fedoseev
e4df8e6dc0
Simplified contrib.admin.utils.unquote().
2018-10-02 15:42:56 -04:00
Przemysław Buczkowski
70d0a1ca02
Fixed #29711 -- Added a system check for uniquness of admin actions' __name__.
2018-10-02 09:17:23 -04:00
Sergey Fedoseev
e9defb3f6e
Simplified contrib.admin.utils.quote().
2018-10-01 09:11:53 -04:00
Carlton Gibson
bf39978a53
Fixed CVE-2018-16984 -- Fixed password hash disclosure to admin "view only" users.
...
Thanks Claude Paroz & Tim Graham for collaborating on the patch.
2018-10-01 10:05:01 +02:00
Claude Paroz
033d842e84
Updated translations from Transifex
...
Forward port of d5ed08263b
from master.
2018-09-29 17:11:49 +02:00
Sergey Fedoseev
8ef8bc0f64
Refs #28909 -- Simplifed code using unpacking generalizations.
2018-09-28 09:57:12 -04:00
Jon Dufresne
82f286cf6f
Refs #29784 -- Switched to https:// links where available.
2018-09-26 08:48:47 +02:00
Jon Dufresne
8c3e0eb1c1
Normalized spelling of "lowercase" and "lowercased".
2018-09-25 10:30:18 -04:00
Jon Dufresne
ad9a28ee38
Refs #29784 -- Normalized Python docs links to omit the version.
2018-09-25 10:19:42 +02:00
Tim Graham
fd8a7a5313
Fixed #29723 -- Fixed crash if InlineModelAdmin.has_add_permission() doesn't 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.
2018-08-30 11:22:50 +02:00
Claude Paroz
50b8493581
Refs #29654 -- Replaced three dots with ellipsis character in output strings.
2018-08-22 09:13:58 -04:00
Claude Paroz
201017df30
Fixed #29654 -- Made text truncation an ellipsis character instead of three dots.
...
Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review.
2018-08-21 17:46:45 +02:00
Rodrigo
371ece2f06
Fixed #29695 -- Added system checks for admin's app dependencies and TEMPLATES setting.
2018-08-20 17:57:46 -04:00
Tim Graham
d311124be5
Fixed #29682 -- Fixed admin change form crash if a view-only model's form has an extra field.
2018-08-20 11:14:20 -04:00
Taha Jahangir
0e7a9525ba
Fixed #29690 -- Fixed aligned <ul> positioning for RTL languages in admin.
2018-08-20 10:20:30 -04:00
Jon Dufresne
dc0868d414
Removed redundant 'model' argument in admin checks.
2018-08-20 09:11:42 -04:00
mackong
c832885a3e
Fixed #29426 -- Made UUID inputs in the admin match the width of a UUID.
2018-08-18 10:16:22 -04:00
Jon Dufresne
09ee3b6fe3
Fixed #29663 -- Made admin change view redirect to changelist with view permission.
2018-08-17 11:13:06 -04:00
Jon Dufresne
57f16655cd
Added ModelAdmin._response_post_save() to avoid code duplication.
2018-08-17 10:51:57 -04:00