David Smith
599f2f79e2
Fixed #30563 -- Optimized form Media by removing duplicated assets when adding.
2020-09-24 13:53:06 +02:00
David Smith
1ac337cca6
Refs #30563 -- Added tests for merging form Media with different ordering.
2020-09-24 13:53:02 +02:00
Jacob Walls
e26a7a8ef4
Fixed #27906 -- Fixed test tools counting of HTML matches for subsets of elements.
...
Previously examples such as '<a/><b/>' would not match in '<a/><b/><c/>'.
2020-09-24 12:52:41 +02:00
Matthias Kestenholz
01974d7f75
Fixed #32029 -- Removed unnecessary margin in admin CSS for horizontal radio inputs.
2020-09-23 13:58:26 +02:00
Matthias Kestenholz
01c6caa3e6
Fixed #32027 -- Fixed wrapping of long words in admin error messages.
2020-09-23 13:51:02 +02:00
Paweł Zarębski
054ab1e00f
Fixed example of QuerySet.explain() with flags in docs.
2020-09-23 11:47:31 +02:00
Mariusz Felisiak
77caeaea88
Fixed #32012 -- Made test database creation sync apps models when migrations are disabled.
...
Thanks Jaap Roes for the report.
2020-09-23 10:54:04 +02:00
Raffaele Salmaso
7b9596b974
Fixed #32034 -- Removed redundant get_app_config() call in AdminSite.app_index.
...
app_config.verbose_name is already in app_dict.
2020-09-23 10:01:05 +02:00
Raffaele Salmaso
666f2e8acd
Refs #32034 -- Added test for title on admin app index view.
2020-09-23 10:01:03 +02:00
Hasan Ramezani
71d10ca8c9
Fixed #31723 -- Fixed window functions crash with DecimalField on SQLite.
...
Thanks Simon Charette for the initial patch.
2020-09-23 09:35:32 +02:00
Carlton Gibson
2a55431a56
Fixed #32016 -- Clarified manual logging config docs.
2020-09-22 14:15:38 +02:00
János Roden
9e4b1ad33e
Fixed #32004 -- Clarified docs for when request.FILES is set.
...
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-09-22 13:28:00 +02:00
Mariusz Felisiak
75d7af43c1
Corrected docstring quotes in various code.
2020-09-22 10:30:53 +02:00
Mariusz Felisiak
f7806193e6
Made indexes tests use required_db_features.
2020-09-22 10:29:59 +02:00
Adam Johnson
2d2fbc3a70
Made jinja2 import lazy in django.forms.
...
Benchmarking shows that about 22% of the startup time for a simple
django project was spent importing jinja2, which the project doesn't
use.
It's reasonable to make this import lazy. This will only affect
projects where jinja2 is installed but not used, but given the
prevalence of jinja2 that's likely to be many environments (e.g. if
Ansible is installed, or the global Python install is used).
2020-09-22 09:53:17 +02:00
Tom Carrick
e387f191f7
Fixed #31777 -- Added support for database collations to Char/TextFields.
...
Thanks Simon Charette and Mariusz Felisiak for reviews.
2020-09-21 18:24:56 +02:00
Mariusz Felisiak
ba6b32e5ef
Refs #32013 -- Added backward incompatibility note about ModelChoiceIterator changes.
2020-09-21 06:25:23 +02:00
Tom Carrick
278b6187d2
Refs #21181 -- Corrected DatabaseFeatures.test_collations for Swedish collation.
...
Previously, backends used different keys "swedish-ci" or "swedish_ci".
2020-09-18 12:15:46 +02:00
David D Lowe
f3901b5899
Doc'd that UpdateCacheMiddleware and cache_page affect downstream caches.
...
Thanks to Nick Pope for review.
2020-09-17 14:28:22 +02:00
Mike Lissner
8c0794ba0d
Refs #28939 -- Doc’d Prefetch behavior with multiple DBs.
2020-09-17 14:26:33 +02:00
Владимир Лысенко
b376297d6c
Tweaked loaddata command to re-use a calculated value.
...
Removed a dublicated call to get_public_serializer_formats which
had already populated self.serialization_formats.
Thanks to Nick Pope for review.
2020-09-17 10:49:54 +02:00
Hasan Ramezani
a046bcadbe
Fixed #31916 -- Fixed combined queryset crash when combining with ordered combined querysets.
2020-09-17 08:26:06 +02:00
Kwist
981a072dd4
Fixed #31843 -- Fixed pickling named values from QuerySet.values_list().
2020-09-16 13:43:06 +02:00
Mariusz Felisiak
3a9f192b13
Refs #32007 -- Skipped test_q_expression_annotation_with_aggregation on Oracle.
2020-09-16 11:47:02 +02:00
Nick Pope
b4d46df5ca
Fixed #29887 -- Added a cache backend for pymemcache.
2020-09-16 09:40:30 +02:00
Nick Pope
cda0a3d777
Refs #29887 , Refs #24212 -- Added more client servers tests for PyLibMCCache.
2020-09-16 07:38:32 +02:00
Mariusz Felisiak
eaf9764d3b
Fixed #32007 -- Fixed queryset crash with Q() annotation and aggregation.
...
Thanks Gordon Wrigley for the report.
Regression in 8a6df55f2d
.
2020-09-15 11:40:59 +02:00
Hasan Ramezani
7be6a6a4d6
Fixed #31989 -- Fixed return value of django.core.files.locks.lock()/unlock() on POSIX systems.
2020-09-15 10:21:26 +02:00
manav014
580a4341cb
Fixed #31636 -- Made BooleanFieldListFilter respect Field.choices.
2020-09-15 09:12:14 +02:00
Tim Graham
fed257ddff
Prevented creation of 3D test models if not supported.
...
There's no problem creating the models on MySQL and Oracle
(which don't support 3D storage) but CockroachDB currently
crashes with a syntax error.
2020-09-15 07:48:48 +02:00
Tim Graham
7f2392981d
Added DatabaseIntrospection.index_default_access_method hook on the PostgreSQL backend.
...
This hook is for the CockroachDB backend where the name is 'prefix'.
2020-09-15 07:38:50 +02:00
Mariusz Felisiak
e11d05e0b4
Fixed #31990 -- Fixed QuerySet.ordered for GROUP BY queries on models with Meta.ordering.
...
Regression in 0ddb4ebf7b
.
Thanks Julien Dutriaux for the report.
2020-09-14 20:07:44 +02:00
Alexander Todorov
5fab16392f
Fixed #32003 -- Added obj argument to has_perm() methods in tests.
2020-09-14 12:28:17 +02:00
Tom Carrick
bcc2befd0e
Fixed #31789 -- Added a new headers interface to HttpResponse.
2020-09-14 08:41:59 +02:00
Tim Graham
71ae1ab012
Removed hardcoded paths to SpatialRefSys models in tests.
2020-09-14 07:58:05 +02:00
Tim Graham
a7a4ff1026
Refs #26697 -- Removed empty gis_tests.maps.
2020-09-14 07:48:47 +02:00
Mariusz Felisiak
3b8857b51a
Corrected tests.backends.sqlite.tests.Tests.test_aggregation()'s docstring.
2020-09-13 20:09:44 +02:00
Mariusz Felisiak
9a0e5052ed
Corrected exception types in QuerySet docs.
2020-09-13 20:09:44 +02:00
Barton Ip
12d6cae7c0
Fixed #31766 -- Made GDALRaster.transform() return a clone for the same SRID and driver.
...
Thanks Daniel Wiesmann for the review.
2020-09-11 10:31:38 +02:00
Hasan Ramezani
5362e08624
Fixed #31943 -- Fixed recreating QuerySet.values()/values_list() when using a pickled Query.
2020-09-11 07:58:52 +02:00
Jon Dufresne
84609b3205
Fixed #31993 -- Added subtitles to admin change/view pages.
2020-09-11 06:28:45 +02:00
Jon Dufresne
cbe34dc8ec
Refs #31993 -- Added more titles assertions for admin views.
2020-09-10 13:21:08 +02:00
Jon Dufresne
53c0d16ac1
Fixed #31992 -- Made admin password reset templates use title/content_title blocks from the base template.
2020-09-10 11:53:09 +02:00
Jacob Walls
1db8d8e3a9
Refs #23130 -- Added test for BooleanField choices generation.
2020-09-10 11:42:06 +02:00
Mariusz Felisiak
438b85dfab
Refs #31956 -- Doc'd consequences of disabling psycopg2's JSONB typecaster.
...
Follow up to 0be51d2226
.
2020-09-10 11:00:13 +02:00
Hasan Ramezani
9369f0cebb
Fixed #31967 -- Doc'd consequences of resolving an output_field for Value().
2020-09-10 09:48:04 +02:00
Ryan Hiebert
502e75f9ed
Fixed #31750 -- Made models.Field equality compare models for inherited fields.
2020-09-09 20:52:59 +02:00
Mariusz Felisiak
453967477e
Mentioned ASGI handler in SuspiciousOperation docs.
2020-09-09 09:05:28 +02:00
Hasan Ramezani
2808cdc8fb
Fixed #31962 -- Made SessionMiddleware raise SessionInterrupted when session destroyed while request is processing.
2020-09-09 09:04:28 +02:00
Petr Čermák
fc1446073e
Fixed #31987 -- Fixed Cast() with DurationField on MySQL.
2020-09-09 07:01:18 +02:00