Sarah Abderemane
1953dd02b6
Refs #27694 -- Doc'd lookups that can be chained with HStoreField key transforms.
2021-10-04 07:18:16 +02:00
Sarah Abderemane
533f345c09
Refs #27694 -- Added more tests for chaining lookups with HStoreField key transforms.
2021-10-04 07:18:16 +02:00
Nick Pope
c2f6c05c4c
Refs #32943 -- Added support for covering exclusion constraints using SP-GiST indexes on PostgreSQL 14+.
2021-10-01 13:11:37 +02:00
Nick Pope
e76f9d5b44
Refs #32943 -- Added support for covering SP-GiST indexes on PostgreSQL 14+.
2021-10-01 13:11:34 +02:00
Nick Pope
bd47b9bc81
Fixed #32961 -- Added BitXor() aggregate to django.contrib.postgres.
2021-10-01 10:32:39 +02:00
Nick Pope
000d430234
Fixed typo in exception message for GiST indexes and exclusion constraints.
2021-10-01 09:46:36 +02:00
Nick Pope
dd26362f63
Fixed SpGistIndex tests on PostgreSQL 14+.
2021-10-01 09:17:59 +02:00
Daniel Hahler
98c8bf1cee
Fixed #33160 -- Avoided suppressing query errors in _nodb_cursor() on PostgreSQL.
2021-10-01 07:23:57 +02:00
Yash Jhunjhunwala
492ed60f23
Fixed #33029 -- Allowed multiple popups for self-related fields in admin.
2021-09-30 15:42:30 +02:00
Adam Johnson
37d9ea5d5c
Optimized @async_unsafe.
...
Switched the order of the checks to reduce the overhead. Async unsafe methods
are *normally* called syncrhonously, so we can avoid the overhead of checking
the environment variable in the regular path.
2021-09-30 12:16:00 +02:00
Aljaž Košir
7b8beeee3d
Fixed #33155 -- Made ModelChoiceIteratorValue instances hashable.
2021-09-30 12:07:50 +02:00
Mariusz Felisiak
903aaa35e5
Fixed #33159 -- Reverted "Fixed #32970 -- Changed WhereNode.clone() to create a shallow copy of children."
...
This reverts commit e441847eca
.
A shallow copy is not enough because querysets can be reused and
evaluated in nested nodes, which shouldn't mutate JOIN aliases.
Thanks Michal Čihař for the report.
2021-09-30 11:26:17 +02:00
David Wobrock
dd1fa3a31b
Fixed #33018 -- Fixed annotations with empty queryset.
...
Thanks Simon Charette for the review and implementation idea.
2021-09-29 20:23:29 +02:00
David Wobrock
ad36a198a1
Fixed #33141 -- Renamed Expression.empty_aggregate_value to empty_result_set_value.
2021-09-29 12:58:01 +02:00
Victor Sowa
9466fd7842
Recommended using .tables on SQLite in tutorial 2.
2021-09-29 12:42:59 +02:00
Chenyang Yan
36d54b7a14
Fixed #33027 -- Made autoreloader pass -X options.
2021-09-29 11:37:50 +02:00
David Smith
4884a87e02
Fixed #33134 -- Fixed recursion depth error when rendering Form with BoundFields.
...
Regression in 456466d932
.
2021-09-29 08:04:42 +02:00
Chinmoy Chakraborty
b7fd668b37
Fixed #33033 -- Prevented models.DecimalField from accepting NaN values.
2021-09-28 13:20:14 +02:00
Mariusz Felisiak
93f3b7a0ba
Corrected field and model check messages in docs.
...
Follow up to 72d04e0385
.
2021-09-28 10:57:16 +02:00
Jordan Bae
f5a3243911
Fixed #33125 -- Avoided redundant unique constraint when converting a non-unique field to primary key on MySQL and PostgreSQL.
2021-09-28 06:20:37 +02:00
Claude Paroz
4ffada3609
Fixed #33136 -- Added GEOSGeometry.make_valid() method.
2021-09-27 09:58:28 +02:00
Mariusz Felisiak
fb05ca420d
Used Path.read_text() in jinja2.get_exception_info().
2021-09-27 09:55:02 +02:00
Mariusz Felisiak
5bac1719a2
Refs #32355 -- Used @functools.lru_cache as a straight decorator.
2021-09-27 09:10:58 +02:00
Adam Johnson
840ad06300
Refs #32355 -- Modernized subprocess.run() calls.
2021-09-27 08:20:24 +02:00
ali
ca58378390
Fixed #33114 -- Defined default output_field of StringAgg.
...
Thanks Simon Charette for the review.
2021-09-27 06:58:54 +02:00
Claude Paroz
8036b53de6
Removed obsolete GEOS 3.5 requirement note.
...
Follow up to ea87a85fad
.
2021-09-24 18:52:08 +02:00
Keryn Knight
06c50cee0f
Fixed #33124 -- Avoided accessing the database connections when not necessary.
...
Follow up to bf5abf1bdc
.
This also caches the __getitem__ access.
2021-09-24 12:19:39 +02:00
Jaap Roes
7fe9b6f6df
Fixed #33130 -- Restored form errors to be a dict.
...
Regression in 456466d932
.
2021-09-24 10:50:41 +02:00
Jaap Roes
b1bf8c8a4b
Fixed #33132 -- Fixed test client handling of querystring only redirects.
...
Regression in 1e5aa8e1c7
.
2021-09-24 08:22:28 +02:00
Hasan Ramezani
f997c81472
Fixed #33127 -- Added error messages on | and & operators with combined querysets.
2021-09-24 06:59:22 +02:00
Carlton Gibson
25cbd1e6aa
Refs #33129 -- Added missing return statement.
...
Thanks to Claude Paroz for spotting it.
Regression in 221b2f85fe
.
2021-09-23 15:36:01 +02:00
Mariusz Felisiak
3b9fe906bf
Fixed #33133 -- Fixed handling NullBooleanField in historical migrations.
...
Regression in d992f4e3c2
.
2021-09-23 10:36:30 +02:00
Jero Bado
3f2170f720
Fixed typo in 4.0 release notes.
2021-09-22 15:17:01 +02:00
Mariusz Felisiak
48924966e2
Skipped GitHub actions for linters and JavaScript tests on purely doc changes.
2021-09-22 13:11:37 +02:00
Nick Pope
448d974d96
Fixed #32499 -- Escaped additional metacharacters in simplify_regex().
2021-09-22 11:59:59 +02:00
Nick Pope
85540da930
Refs #32499 -- Fixed escaped metacharacters in simplify_regex().
2021-09-22 11:59:59 +02:00
Nick Pope
9f7809ece3
Refs #32499 -- Added more tests for simplify_regex().
2021-09-22 11:59:59 +02:00
Nick Pope
27189af8cf
Refs #32499 -- Added metacharacters helper for simplify_regex().
2021-09-22 11:59:59 +02:00
Mariusz Felisiak
221b2f85fe
Fixed #33129 -- Dropped support for MariaDB 10.2.
2021-09-22 11:57:54 +02:00
Joel Farthing
2f14432375
Fixed #33128 -- Corrected possessive 's usage in FormSet docs.
2021-09-22 11:26:24 +02:00
Illia Volochii
bc4c7e5d68
Optimized handling case-insensitive mappings.
...
Elements yielded by _destruct_iterable_mapping_values are always
unpacked. Since unpacking can be done with any iterable, there is no
need to convert elements to tuples. Also, such elements can be used
directly in for loops, creating a dictionary of them is excessive.
Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2021-09-22 09:26:21 +02:00
Carlton Gibson
e0a56ad3c8
Removed blocking wait in admin inlines selenium test.
...
find_elements_by_css_selector() implicitly waits the default timeout
(10 seconds) looking for missing elements.
2021-09-22 08:17:48 +02:00
Carlton Gibson
b0ed619303
Fixed #33083 -- Fixed selecting all items in the admin changelist when actions are both top and bottom.
...
Thanks Benjamin Locher for the report.
Regression in 30e59705fc
.
2021-09-21 19:58:00 +02:00
Mariusz Felisiak
7d909b2282
Updated source translation catalogs.
...
Forwardport of 5b8cc4ce26
from stable/4.0.x.
2021-09-21 13:40:07 +02:00
Hasan Ramezani
2f0f30f973
Fixed #33111 -- Fixed passing object to ModelAdmin.get_inlines() when editing in admin change view.
...
ModelAdmin.get_inlines() should get an unmutated object when creating
formsets during POST request.
2021-09-21 13:12:09 +02:00
Mariusz Felisiak
1bb8200f2f
Refs #32204 -- Replaced three dots with ellipsis in navigation sidebar template.
2021-09-21 10:19:14 +02:00
Mariusz Felisiak
881a479911
Refs #31026 -- Fixed forms_tests if Jinja2 is not installed.
2021-09-21 10:16:44 +02:00
Mariusz Felisiak
1d16dbc745
Fixed broken links and redirects in docs.
2021-09-21 09:27:44 +02:00
Mariusz Felisiak
f8bab4e0dc
Used :rfc: role in docs/topics/conditional-view-processing.txt.
2021-09-21 09:27:44 +02:00
Cleiton Lima
8eb5693091
Fixed #33070 -- Fixed loading translations with language subtags in admin's Select2 widget.
2021-09-21 07:18:37 +02:00