Tom Forbes
730711e828
Used temporary directory in RestartWithReloaderTests.test_manage_py().
...
Using the current directory can cause a PermissionError.
2020-07-20 09:16:16 +02:00
Florian Apolloner
96a3ea39ef
Fixed #31784 -- Fixed crash when sending emails on Python 3.6.11+, 3.7.8+, and 3.8.4+.
...
Fixed sending emails crash on email addresses with display names longer
then 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+.
Wrapped display names were passed to email.headerregistry.Address()
what caused raising an exception because address parts cannot contain
CR or LF.
See https://bugs.python.org/issue39073
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-07-20 07:10:40 +02:00
Mariusz Felisiak
f405954ea2
Refs #31784 -- Added test for preventing header injection in display name of email addresses.
2020-07-20 07:10:16 +02:00
Mariusz Felisiak
3d16496037
Bumped asgiref requirement to >= 3.2.10.
...
Forwardported 3.1 release notes from 474f65406f
.
2020-07-17 21:15:21 +02:00
Adam Johnson
e7fa8aff43
Improved ManyToManyField.through docs.
2020-07-17 10:29:24 +02:00
Ravindar Sharma
18d4eac7fc
Fixed #31731 -- Removed unreachable code for resetting sequences of auto-created m2m tables in sequence_reset_sql().
...
Unreachable because f.remote_field.through is truthy for all m2m
fields.
Resetting sequences of auto-created m2m tables in sequence_reset_sql()
is also unnecessary:
- in sqlsequencereset since c39ec6dccb
because auto-created tables are included in model_list,
- in loaddata because there is no it need to reset sequences for
models not loaded directly.
- in create_default_site() because it doesn't have m2m fields.
2020-07-17 08:16:32 +02:00
Adam Johnson
5ef6f62634
Refs #31502 -- Made minor edits to Model._state docs.
2020-07-16 20:50:53 +02:00
Claudio Catterina
faa6d41cda
Fixed typo in DecimalValidator tests.
...
This replaces redundant test for -Infinity with +Infinity.
2020-07-16 11:21:39 +02:00
Tim Park
8fa9a6d29e
Fixed #31623 -- Allowed specifying number of adjacent time units in timesince()/timeuntil().
2020-07-16 09:44:28 +02:00
Mariusz Felisiak
bde33bdd51
Stopped adapting DecimalField values to strings on Oracle.
...
cx_Oracle handles decimal.Decimal.
expressions_case.tests.CaseExpressionTests.test_update_decimal fails without
this change.
Follow up to 9c5c9bd709
.
2020-07-16 09:43:08 +02:00
Mariusz Felisiak
9bc8b1ad2d
Refs #31790 -- Removed incorrect item from 2.2.15 and 3.0.9 release notes.
...
Django 2.2 and 3.0 don't support settings samesite='None' in
HttpResponse.set_cookie() so fix is not necessary and will not be
backported.
2020-07-16 09:27:09 +02:00
Mariusz Felisiak
240cbb63bf
Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in HttpResponse.delete_cookie().
...
Cookies with the "SameSite" flag set to None and without the "secure"
flag will be soon rejected by latest browser versions.
This affects sessions and messages cookies.
2020-07-16 08:16:58 +02:00
Simon Charette
156a2138db
Refs #30446 -- Removed unnecessary Value(..., output_field) in docs and tests.
2020-07-15 10:58:38 +02:00
Simon Charette
1e38f1191d
Fixed #30446 -- Resolved Value.output_field for stdlib types.
...
This required implementing a limited form of dynamic dispatch to combine
expressions with numerical output. Refs #26355 should eventually provide
a better interface for that.
2020-07-15 10:58:29 +02:00
Eric Theise
d08e6f55e3
FIxed typo in docs/ref/contrib/postgres/forms.txt.
2020-07-15 09:02:51 +02:00
Claude Paroz
b502061027
Added admin translatable string.
...
Forward port of dda8a2aa1d
from stable/3.1.x.
2020-07-14 21:37:49 +02:00
Kelechi Precious Nwachukwu
2cd3e7eeaf
Added Igbo language.
2020-07-14 20:44:41 +02:00
Simon Charette
1b7623fdfd
Refs #30446 -- Defined output_field of BoundingCircle() GIS database function.
...
This prevented the default behavior of
BaseExpression._resolve_output_field from error'ing out when such
functions accepted both expressions from mixed types
(e.g. BoundingCircle(Polygon, num_seg=12)).
2020-07-14 09:36:17 +02:00
Simon Charette
9c5c9bd709
Stopped adapting DecimalField values to strings on PostgreSQL.
...
The psycopg2 backend uses the type information to provide type hints.
2020-07-14 07:40:10 +02:00
Simon Charette
f783a99072
Refs #25425 -- Allowed unresolved Value() instances to be compiled.
...
Previously unresolved Value() instances were only allowed to be
compiled if they weren't initialized with an output_field.
Given the usage of unresolved Value() instances is relatively common in
as_sql() overrides it's less controversial to add explicit support for
this previously undefined behavior now and revisit whether or not it
should be deprecated in the future.
2020-07-14 07:20:20 +02:00
Caio Ariede
d38c34119e
Fixed #21528 -- Added note about filtering form field's queryset based on instance to admin docs.
2020-07-13 20:32:57 +02:00
Adam Johnson
e906ff6fca
Fixed #30457 -- Added TestCase.captureOnCommitCallbacks().
2020-07-13 11:56:46 +02:00
Simon Charette
ca6c5e5fc2
Fixed #31770 -- Allowed select_for_update(of) on MySQL 8.0.1+.
2020-07-13 10:15:43 +02:00
Tom Forbes
f36862b69c
Fixed #31674 -- Made technical 500 debug page respect __suppress_context__.
2020-07-13 08:06:21 +02:00
ovkulkarni
b7a438c7e2
Fixed #31509 -- Made DiscoverRunner enable faulthandler by default.
2020-07-10 18:55:50 +02:00
Mariusz Felisiak
188f7786bc
Refs #27430 -- Added buffer argument to DiscoverRunner docs.
2020-07-10 18:55:50 +02:00
Mariusz Felisiak
2c43840dfb
Refs #30676 -- Added pdb argument to DiscoverRunner docs.
2020-07-10 18:55:50 +02:00
Claude Paroz
00727d384b
Refs #30578 -- Made SelectDateWidget.format_value() independent of USE_L10N.
2020-07-10 13:00:37 +02:00
François Freitag
04e4f80c1f
Sorted conflicting migrations by names.
2020-07-10 12:18:42 +02:00
Ramiro Morales
52a0a03671
Corrected custom model fields how-to.
...
get_prep_value() method is complementary of from_db_value().
Follow up to e9103402c0
.
2020-07-10 11:11:40 +02:00
matt ferrante
7d6916e827
Fixed #29789 -- Added support for nested relations to FilteredRelation.
2020-07-09 20:24:00 +02:00
Jon Dufresne
5a3d7cf462
Used urllib.parse.urljoin() in auth_tests to join URLs.
...
As the strings represent URLs and not paths, should use urllib to
manipulate them.
2020-07-09 12:03:03 +02:00
Mariusz Felisiak
8a6df55f2d
Fixed #31773 -- Fixed preserving output_field in ExpressionWrapper for combined expressions.
...
Thanks Thodoris Sotiropoulos for the report and Simon Charette for the
implementation idea.
Regression in df32fd42b8
.
2020-07-09 11:55:03 +02:00
Carlton Gibson
1d8256719e
Removed unsupported third-party database backends from docs.
2020-07-08 22:29:21 +02:00
Jon Dufresne
0e6fa65ffd
Refs #30400 -- Improved typography in debug and csrf templates.
2020-07-08 22:04:37 +02:00
davidchorpash
779e615e36
Fixed #31573 -- Made QuerySet.update() respect ordering on MariaDB/MySQL.
2020-07-08 11:43:50 +02:00
Tim Park
060576b0ab
Fixed #31739 -- Documented dependency between HttpRequest stream IO methods and body.
2020-07-08 10:40:33 +02:00
Tim Park
697e59d5cf
Fixed #31502 -- Documented Model._state.db and Model._state.adding
2020-07-08 10:05:47 +02:00
Resulkary
af2b3fee08
Added Turkmen language.
2020-07-08 08:43:28 +02:00
Jason Held
639142e24d
Fixed #24816 -- Clarified docs about preventing duplicate signals.
2020-07-08 06:24:36 +02:00
Mariusz Felisiak
ae8338daf3
Fixed #31767 -- Fixed QuerySet.none() on combined queryset.
2020-07-07 12:15:05 +02:00
rico-ci
cb0da637a6
Fixed #31713 -- Added SpatialReference support to GDALRaster.transform().
2020-07-07 09:26:44 +02:00
Hasan Ramezani
7af8f41273
Refs #26445 -- Allowed using UserManager.create_user()/create_superuser() in migrations.
...
Used app config to lookup user model in _create_user().
Thanks Markus Holtermann for the review and initial patch.
Thanks Simon Charette for the implementation idea.
2020-07-06 11:47:22 +02:00
Tim Park
d1409f51ff
Fixed #31732 -- Cached callables signatures in django.utils.inspect methods.
2020-07-06 10:42:43 +02:00
Jacob Walls
512da9d585
Fixed #23797 -- Fixed QuerySet.exclude() when rhs is a nullable column.
2020-07-06 10:15:37 +02:00
Hasan Ramezani
b7b7df5fbc
Fixed #31530 -- Added system checks for invalid model field names in CheckConstraint.check and UniqueConstraint.condition.
2020-07-06 09:16:57 +02:00
Jacob Walls
659a73bc0a
Fixed #29308 -- Clarified how assertQuerysetEqual()'s transform works.
2020-07-04 23:13:21 +02:00
Jon Dufresne
4d9cd89acb
Simplified <body> element references in DateTimeShortcuts.js.
2020-07-04 21:14:52 +02:00
Tom Forbes
5d4b9c1cab
Refs #12990 -- Added example to JSONField release notes.
2020-07-03 12:45:39 +02:00
MansurAliKoroglu
d88952142b
Adjusted multi-db example to avoid confusion with DATABASES keys.
2020-07-03 12:41:00 +02:00