Hannes Ljungberg
00aa3e0b9b
[4.0.x] Fixed #33194 -- Fixed migrations when altering a field with functional indexes/unique constraints on SQLite.
...
This adjusts Expressions.rename_table_references() to only update alias
when needed.
Regression in 83fcfc9ec8
.
Co-authored-by: Simon Charette <charettes@users.noreply.github.com>
Backport of 86971c4090
from main
2021-10-18 09:36:21 +02:00
Mariusz Felisiak
6a16d53039
[4.0.x] Refs #32074 -- Removed usage of deprecated asyncore and smtpd modules.
...
asyncore and smtpd modules were deprecated in Python 3.10.
Backport of 569a33579c
from main
2021-10-15 09:58:53 +02:00
Martin Svoboda
dd8945d361
[4.0.x] Fixed #33008 -- Fixed prefetch_related() for deleted GenericForeignKeys.
...
Thanks Simon Charette for the implementation idea.
Backport of cc4cb95bef
from main
2021-10-14 13:07:24 +02:00
Mariusz Felisiak
8ab95364b5
[4.0.x] Refs #27131 -- Removed SMTPBackendTests.test_server_login().
...
test_server_login() was a regression test for a crash when passing
Unicode strings to SMTP server using CRAM-MD5 method on Python 2.
Python 2 is no longer supported and test_server_login() passes even
without FakeSMTPChannel.smtp_AUTH() because
smtplib.SMTPAuthenticationError is raised when AUTH is not implemented.
Backport of cdad96e633
from main
2021-10-14 11:37:53 +02:00
Christophe Henry
048fbf9c89
[4.0.x] Fixed #33178 -- Made createsuperuser validate required fields passed in options in interactive mode.
...
Backport of b1b26b37af
from main.
2021-10-12 08:43:56 +02:00
Christophe Henry
b55df4c74a
[4.0.x] Refs #21755 -- Fixed createsuperuser crash for required foreign keys passed in options in interactive mode.
...
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Backport of 4ff500f294
from main
2021-10-12 07:43:17 +02:00
Mariusz Felisiak
224fa0bc7d
[4.0.x] Refs #29628 , Refs #33178 -- Made createsuperuser validate password against required fields passed in options.
...
Backport of da266b3c5c
from main
2021-10-12 07:41:51 +02:00
Christophe Henry
f2a59630f4
[4.0.x] Fixed #33151 -- Fixed createsuperuser crash for many-to-many required fields in non-interactive mode.
...
Backport of df2d2bc95c
from main
2021-10-07 13:11:18 +02:00
Maxim Milovanov
f6c7e75cdf
[4.0.x] Fixed #33156 -- Used sessionStorage to preserve quick filter for admin's navigation sidebar.
...
Backport of 1c802ca2a9
from main
2021-10-06 09:02:45 +02:00
Nick Pope
fbcd7df120
[4.0.x] Fixed SpGistIndex tests on PostgreSQL 14+.
...
Backport of dd26362f63
from main
2021-10-01 09:43:32 +02:00
Daniel Hahler
81bb0ae221
[4.0.x] Fixed #33160 -- Avoided suppressing query errors in _nodb_cursor() on PostgreSQL.
...
Backport of 98c8bf1cee
from main
2021-10-01 07:24:45 +02:00
Aljaž Košir
0a49276065
[4.0.x] Fixed #33155 -- Made ModelChoiceIteratorValue instances hashable.
...
Backport of 7b8beeee3d
from main
2021-09-30 12:09:24 +02:00
Mariusz Felisiak
93a42d43a6
[4.0.x] 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.
Backport of 903aaa35e5
from main
2021-09-30 11:26:53 +02:00
David Wobrock
b2a0978610
[4.0.x] Fixed #33018 -- Fixed annotations with empty queryset.
...
Thanks Simon Charette for the review and implementation idea.
Backport of dd1fa3a31b
from main
2021-09-29 20:53:16 +02:00
David Wobrock
aab76433ed
[4.0.x] Fixed #33141 -- Renamed Expression.empty_aggregate_value to empty_result_set_value.
...
Backport of ad36a198a1
from main
2021-09-29 20:52:59 +02:00
Chenyang Yan
ee79fe0f8e
[4.0.x] Fixed #33027 -- Made autoreloader pass -X options.
...
Backport of 36d54b7a14
from main
2021-09-29 12:04:45 +02:00
David Smith
0b62518ff4
[4.0.x] Fixed #33134 -- Fixed recursion depth error when rendering Form with BoundFields.
...
Regression in 456466d932
.
Backport of 4884a87e02
from main
2021-09-29 10:55:01 +02:00
Chinmoy Chakraborty
6f31041794
[4.0.x] Fixed #33033 -- Prevented models.DecimalField from accepting NaN values.
...
Backport of b7fd668b37
from main
2021-09-28 13:57:45 +02:00
Jaap Roes
25cfa5db0f
[4.0.x] Fixed #33130 -- Restored form errors to be a dict.
...
Regression in 456466d932
.
Backport of 7fe9b6f6df
from main
2021-09-24 12:14:11 +02:00
Jaap Roes
5d36af6f6f
[4.0.x] Fixed #33132 -- Fixed test client handling of querystring only redirects.
...
Regression in 1e5aa8e1c7
.
Backport of b1bf8c8a4b
from main
2021-09-24 08:23:41 +02:00
Carlton Gibson
8467c4ed3e
[4.0.x] 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
.
Backport of b0ed619303
from main
2021-09-21 19:59:09 +02:00
Hasan Ramezani
668b990bf6
[4.0.x] 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.
Backport of 2f0f30f973
from main
2021-09-21 13:35:47 +02:00
Mariusz Felisiak
bc1fa8ebcd
[4.0.x] Refs #31026 -- Fixed forms_tests if Jinja2 is not installed.
...
Backport of 881a479911
from main
2021-09-21 10:18:03 +02:00
Cleiton Lima
a077f10df4
[4.0.x] Fixed #33070 -- Fixed loading translations with language subtags in admin's Select2 widget.
...
Backport of 8eb5693091
from main
2021-09-21 08:07:59 +02:00
David Smith
456466d932
Fixed #31026 -- Switched form rendering to template engine.
...
Thanks Carlton Gibson, Keryn Knight, Mariusz Felisiak, and Nick Pope
for reviews.
Co-authored-by: Johannes Hoppe <info@johanneshoppe.com>
2021-09-20 15:50:18 +02:00
AliGhotbizadeh
b8f3a3ad54
Refs #33119 -- Added tests for changing model name case referenced by ManyToManyField.
...
Fixed in aa4acc164d
.
2021-09-20 12:00:10 +02:00
Ken Whitesell
0a9aa02e6f
Fixed #33077 -- Fixed links to related models for admin's readonly fields in custom admin site.
2021-09-18 12:27:28 +02:00
Nikita Marchant
4e4082f939
Fixed #32492 -- Added TrigramWordSimilarity() and TrigramWordDistance() on PostgreSQL.
2021-09-17 13:05:15 +02:00
David Smith
4ca508a689
Refs #31026 -- Added extra form render tests.
2021-09-17 09:21:10 +02:00
David Smith
91e8b95d5b
Refs #31026 -- Moved Template tests to separate class.
2021-09-17 09:20:02 +02:00
Giannis Adamopoulos
4555aa0a48
Fixed #27674 -- Deprecated GeoModelAdmin and OSMGeoAdmin.
...
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-09-17 08:56:16 +02:00
Mariusz Felisiak
f1bcaa9be8
Refs #32074 -- Fixed find_module()/find_loader() warnings on Python 3.10+.
2021-09-16 20:20:54 +02:00
Carlton Gibson
306607d5b9
Fixed #32365 -- Made zoneinfo the default timezone implementation.
...
Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick
Pope, and Paul Ganssle for reviews.
2021-09-16 12:11:05 +02:00
Daniyal
ec212c6616
Fixed #33012 -- Added Redis cache backend.
...
Thanks Carlton Gibson, Chris Jerdonek, David Smith, Keryn Knight,
Mariusz Felisiak, and Nick Pope for reviews and mentoring this
Google Summer of Code 2021 project.
2021-09-14 15:50:08 +02:00
Claude Paroz
676bd084f2
Fixed #32873 -- Deprecated settings.USE_L10N.
...
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-09-14 12:05:43 +02:00
antoinehumbert
de95c82667
Fixed #31867 -- Made TabularInline handling of hidden fields with view-only permissions consistent with StackedInline.
2021-09-10 10:10:53 +02:00
Jan Schär
06e59d97a3
Fixed #33096 -- Fixed <form> nesting in technical 500 template.
...
This also prevents sending <form> tags in emails.
2021-09-10 06:44:39 +02:00
Hasan Ramezani
0a28b42b15
Fixed #33084 -- Removed incorrect system check for ManyToManyField with limit_choices_to.
2021-09-09 12:07:59 +02:00
Siburg
46c8df640c
Fixed #32219 -- Made InlineModelAdmin.verbose_name_plural fallback to its verbose_name.
2021-09-08 13:20:13 +02:00
Siburg
1bd6a7a0ac
Refs #32219 -- Added admin model inline tests for verbose names.
...
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-09-08 11:32:06 +02:00
Mariusz Felisiak
4a43335d30
Fixed #30086 , Refs #32873 -- Made floatformat template filter independent of USE_L10N.
2021-09-08 08:37:27 +02:00
Andrew-Chen-Wang
301a85a12f
Fixed #32076 -- Added async methods to BaseCache.
...
This also makes DummyCache async-compatible.
2021-09-07 20:14:25 +02:00
Nick Pope
4b82578a60
Refs #33060 -- Ensured cache backends validate keys.
...
The validate_key() function should be called after make_key() to ensure
that the validation is performed on the key that will actually be
stored in the cache.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-09-07 11:59:40 +02:00
Mariusz Felisiak
ec2f6ea9c6
Refs #33060 -- Added memcached test for make_key() making keys invalid.
2021-09-07 11:57:14 +02:00
Mateo Radman
a7f27fca52
Refs #32508 -- Raised TypeError/ValueError instead of using "assert" in encode() methods of remaining password hashers.
2021-09-06 07:47:53 +02:00
taulant
0e8be73812
Fixed #32975 -- Fixed admin system check for inlines with foreign keys to proxy models.
2021-09-03 06:48:32 +02:00
Nick Pope
b8824e8d17
Refs #31907 -- Fixed incorrect argument for delete_many() in cache tests.
2021-09-02 12:47:04 +02:00
Daniyal Abbasi
dca4c2ff76
Refs #33012 -- Moved PickleSerializer to django.core.serializers.base and added tests.
2021-09-02 11:24:55 +02:00
Mariusz Felisiak
50ed545e2f
Fixed #33082 -- Fixed CommandTests.test_subparser_invalid_option on Python 3.9.7+.
...
Thanks Michał Górny for the report.
2021-09-02 10:56:56 +02:00
Stefanos I. Tsaklidis
d0ea01af28
Fixed #33079 -- Fixed get_image_dimensions() on nonexistent images.
...
Thanks Nick Pope for the review.
2021-09-02 07:08:50 +02:00