siddhartha-star-dev
|
dcebc5da48
|
Refs #2259 -- Disallowed primary keys in ModelAdmin.list_editable.
Refs #32728.
|
2022-04-25 11:00:50 +02:00 |
Mariusz Felisiak
|
7119f40c98
|
Refs #33476 -- Refactored code to strictly match 88 characters line length.
|
2022-02-07 20:37:05 +01:00 |
django-bot
|
9c19aff7c7
|
Refs #33476 -- Reformatted code with Black.
|
2022-02-07 20:37:05 +01:00 |
Hasan Ramezani
|
20ddc3b81d
|
Fixed #32494 -- Adjusted system check for raw_id_fields to warn about Field.attname.
|
2021-03-04 08:41:28 +01:00 |
Hasan Ramezani
|
1da54bfe7d
|
Corrected messages of admin checks for invalid model field names.
|
2021-03-04 08:41:28 +01:00 |
David Smith
|
e74b3d724e
|
Bumped minimum isort version to 5.1.0.
Fixed inner imports per isort 5.
isort 5.0.0 to 5.1.0 was unstable.
|
2020-07-30 10:58:59 +02:00 |
Hasan Ramezani
|
18759b2209
|
Fixed #31616 -- Added hint about middleware ordering for SessionMiddleware admin check.
|
2020-05-25 21:14:32 +02:00 |
Jon Dufresne
|
d522b51c40
|
Fixed #31575 -- Added system check for admin sidebar request context processor dependency.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
|
2020-05-14 11:00:51 +02:00 |
Nick Pope
|
335c9c94ac
|
Simplified imports from django.db and django.contrib.gis.db.
|
2020-02-04 13:20:06 +01:00 |
Mariusz Felisiak
|
b7a3a6c9ef
|
Used model's Options.label/label_lower where applicable.
|
2020-01-29 12:09:20 +01:00 |
Adam Donaghy
|
8b3e714ecf
|
Fixed #30980 -- Improved error message when checking uniqueness of admin actions' __name__.
Thanks Keshav Kumar for the initial patch.
|
2020-01-10 14:00:28 +01:00 |
Hasan Ramezani
|
ed668796f6
|
Fixed #30543 -- Fixed checks of ModelAdmin.list_display for fields accessible only via instance.
Co-Authored-By: Andrew Simons <andrewsimons@bubblegroup.com>
|
2019-07-10 10:37:34 +02:00 |
Aarni Koskela
|
efeceba589
|
Fixed #30312 -- Relaxed admin check from django.contrib.sessions to SessionMiddleware subclasses.
|
2019-04-26 11:31:06 +02:00 |
Herman S
|
f976ab1b11
|
Fixed #30237 -- Made Authentication/SessionMiddleware and ModelBackend admin checks allow subclasses.
|
2019-03-14 20:09:57 -04:00 |
Tim Graham
|
6079ed82f4
|
Refs #27991 -- Made obj a required argument of InlineModelAdmin.has_add_permission().
Per deprecation timeline.
|
2019-01-17 11:14:07 -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 |
Przemysław Buczkowski
|
70d0a1ca02
|
Fixed #29711 -- Added a system check for uniquness of admin actions' __name__.
|
2018-10-02 09:17:23 -04:00 |
Rodrigo
|
371ece2f06
|
Fixed #29695 -- Added system checks for admin's app dependencies and TEMPLATES setting.
|
2018-08-20 17:57:46 -04:00 |
Jon Dufresne
|
dc0868d414
|
Removed redundant 'model' argument in admin checks.
|
2018-08-20 09:11:42 -04:00 |
Carlton Gibson
|
958c7b301e
|
Fixed #29419 -- Allowed permissioning of admin actions.
|
2018-06-18 15:07:29 -04:00 |
Tim Graham
|
ec2c9c3531
|
Refs #29428 -- Fixed admin check crash when using a query expression in ModelAdmin.ordering.
|
2018-06-14 21:04:43 -04:00 |
Matthias Kestenholz
|
13efbb233a
|
Fixed #29322 -- Made admin check all ModelAdmin fieldsets for duplicates.
|
2018-04-13 11:08:30 -04:00 |
Jon Dufresne
|
be6ca89396
|
Fixed #27991 -- Added obj arg to InlineModelAdmin.has_add_permission().
Thanks Vladimir Ivanov for the initial patch.
|
2018-04-04 19:21:50 -04:00 |
Rodrigo Pinheiro Marques de Araújo
|
30a389bd77
|
Fixed #28898 -- Corrected admin check to allow a OneToOneField in ModelAdmin.autocomplete_fields.
|
2017-12-13 02:39:27 -05:00 |
Nick Pope
|
d13a9e44de
|
Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.
|
2017-12-11 07:08:45 -05:00 |
Hunter Richards
|
47016adbf5
|
Fixed #28490 -- Removed unused code in admin.E108 check.
|
2017-10-02 13:04:42 -04:00 |
Johannes Hoppe
|
94cd8efc50
|
Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ManyToManyField in the admin.
Thanks Florian Apolloner and Tim Graham for review and
contributing to the patch.
|
2017-09-18 13:48:02 -04:00 |
Tim Graham
|
37520d284e
|
Removed useless hasattr() checks in ModelAdmin checks.
These attributes are defined on BaseModelAdmin and thus should always
be there.
|
2017-06-02 15:27:15 -04:00 |
Tom
|
7afb476469
|
Fixed #28226 -- Replaced use of str.join() with concatenation.
|
2017-05-27 13:59:05 -04:00 |
Jon Dufresne
|
92bc727271
|
Replaced temporary lists used for passing arguments with iterables.
|
2017-04-26 10:54:20 -04:00 |
Mads Jensen
|
ed0cbc8d8b
|
Refs #23919 -- Removed some Python 2 compatibility code and comments.
|
2017-03-27 13:12:27 -04:00 |
David Szotten
|
d82ee32aac
|
Fixed #27889 -- Fixed incorrect check error if ModelAdmin.ordering refers to 'pk'.
|
2017-03-02 10:25:05 -05:00 |
chillaranand
|
d6eaf7c018
|
Refs #23919 -- Replaced super(ClassName, self) with super().
|
2017-01-25 12:23:46 -05:00 |
Simon Charette
|
cecc079168
|
Refs #23919 -- Stopped inheriting from object to define new style classes.
|
2017-01-19 08:39:46 +01:00 |
Claude Paroz
|
d7b9aaa366
|
Refs #23919 -- Removed encoding preambles and future imports
|
2017-01-18 09:55:19 +01:00 |
Adam Chainz
|
d57ecf40eb
|
Fixed #27673 -- Made admin's checks run at check time instead of during registration.
Thanks Morgan Aubert for the test.
|
2017-01-10 07:02:13 -05:00 |
Anton Samarchyan
|
da79240050
|
Fixed #26632 -- Skipped admin.E111 list_display_links check if get_list_display() is overridden.
|
2016-12-22 09:32:11 -05:00 |
Henry Dang
|
6af23a4521
|
Fixed #27377 -- Clarified that prepopulated_fields doesn't work with OneToOneField.
|
2016-12-19 08:33:46 -05:00 |
Nick Pope
|
f1664a2734
|
Replaced '__' with LOOKUP_SEP constant.
|
2016-10-11 11:14:06 -04:00 |
Berker Peksag
|
426bca002c
|
Fixed #26816 -- Corrected an admin check to require inlines to subclass InlineModelAdmin.
|
2016-08-24 17:34:32 -04:00 |
Collin Anderson
|
384f89f8f8
|
Fixed #26998 -- Reverted some admin checks from checking field.many_to_many back to isinstance(field, models.ManyToManyField).
This partially reverts 983c158da7
|
2016-08-23 16:00:12 -04:00 |
Vytis Banaitis
|
2f9c4e2b6f
|
Fixed #19963 -- Added support for date_hierarchy across relations.
|
2016-06-04 12:14:02 -04:00 |
Tim Graham
|
2cd2d18851
|
Fixed W503 flake8 warnings.
|
2016-04-04 17:14:26 -04:00 |
Claude Paroz
|
983c158da7
|
Refs #24227 -- Replaced M2M isinstance checks by field.many_to_many
Thanks Markus Holtermann, Collin Anderson and Tim Graham for the reviews.
|
2016-03-19 09:24:27 +01:00 |
Alasdair Nicol
|
65bd053f11
|
Fixed #26229 -- Improved check for model admin check admin.E124
Refs #22792
|
2016-03-01 08:20:14 -05:00 |
Tim Graham
|
004ba0f99e
|
Removed unneeded hint=None/obj=None in system check messages.
|
2016-02-12 13:01:25 -05:00 |
Tim Graham
|
406675b1a0
|
Fixed #26176 -- Fixed E123 flake8 warnings.
|
2016-02-05 15:11:07 -05:00 |
Vincenzo Pandolfo
|
0490d72f2a
|
Fixed #24116 -- Moved AdminSite.check_dependencies() to system checks.
|
2016-01-22 18:29:56 -05:00 |
Malcolm Box
|
1d8eb0cae5
|
Fixed #25374 -- Made ModelAdmin checks work on instances instead of classes.
This allows dynamically-generated attributes to be specified in
checked ModelAdmin attributes without triggering errors.
|
2015-09-11 09:28:34 -04:00 |
Fabrizio Ettore Messina
|
ece78684d9
|
Fixed #25267 -- Corrected message for admin.E122 system check.
|
2015-08-13 12:34:48 -04:00 |