summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-28Fixed #31836 -- Dropped support for JSONField __contains and __contained_by ↵Mariusz Felisiak
lookups on SQLite. The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object".
2020-07-28Improved performance of STATIC_URL and MEDIA_URL setting access.Florian Apolloner
Run `add_script_prefix()` on first access, rather than on every time.
2020-07-28Refs #30165 -- Removed leftover 'u' prefix.Claude Paroz
2020-07-28Fixed #31835 -- Dropped support for JSONField __contains lookup on Oracle.Mariusz Felisiak
The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object".
2020-07-28Refs #27996 -- Doc'd no extension required for RandomUUID() on PostgreSQL 13+.Nick Pope
https://www.postgresql.org/docs/13/functions-uuid.html https://www.postgresql.org/docs/13/pgcrypto.html#id-1.11.7.34.10.5
2020-07-27Fixed #31806 -- Made validators include the value in ValidationErrors.Jon Dufresne
2020-07-27Refs #31806 -- Added tests for including the value in some ValidationErrors.Jon Dufresne
2020-07-27Removed redundant forms.DecimalField.validate() in favor of DecimalValidator.Jon Dufresne
2020-07-27Fixed #31815 -- Fixed schema value encoding on PostgreSQL.Mariusz Felisiak
2020-07-24Fixed #31812 -- Fixed FileField.model for fields defined in abstract models.Matthias Kestenholz
Regression in a93425a37f4defdb31d4ca96bb3bf6da21f0b5ce.
2020-07-24Fixed #31802 -- Added system check for non-integer SITE_ID.Parth Verma
2020-07-23Fixed #31821 -- Removed outdated note in FILE_UPLOAD_PERMISSIONS docs.Harpreet Sharma
Follow up to 22aab8662f0368b63f91f2526bdd0532524bc0fe
2020-07-23Fixed #31816 -- Corrected the expected content type in StreamingHttpResponse ↵LincolnPuzey
docs.
2020-07-22Fixed typo in docs/ref/models/querysets.txt.Ramiro Morales
2020-07-22Fixed #31814 -- Fixed typo in docs/ref/settings.txt.Buk Bukowski
2020-07-22Doc'd Model.MultipleObjectsReturned docs and improved documentation related ↵Adam Johnson
with models exceptions.
2020-07-22Refs #24763 -- Moved DoesNotExist to Model class docs.Adam Johnson
2020-07-22Fixed #31805 -- Fixed SchemaTests.tearDown() when table names are ↵Mariusz Felisiak
case-insensitive.
2020-07-22Fixed #31797 -- Skipped schema tests on specific MariaDB versions.Mariusz Felisiak
test_alter_not_unique_field_to_primary_key() test is affected by https://jira.mariadb.org/browse/MDEV-19598 on MariaDB 10.4.4 to 10.5.1. test_alter_pk_with_self_referential_field() test is affected by https://jira.mariadb.org/browse/MDEV-22775 on MariaDB 10.4 series from 10.4.13.
2020-07-22Fixed #31765 -- Disabled bundled SQLite renaming atomic references on macOS ↵Tom Forbes
10.15.
2020-07-22Reverted "Fixed #30300 -- Allowed migrations to be loaded from directories ↵Tim Graham
without __init__.py file." This reverts commit 3cd3bebe8921e14b911b36b2a1cbceef8fb6294e.
2020-07-21Fixed #31180 -- Configured applications automatically.Aymeric Augustin
2020-07-21Refs #31720 -- Defined default output_field of BoolAnd() and BoolOr() ↵David Chorpash
aggregate functions.
2020-07-21Refs #31720 -- Added examples to BoolAnd() and BoolOr() documentation.David Chorpash
2020-07-20Fixed #31769 -- Improved default naming of merged migrations.Jon Dufresne
47 gives 60 in total (47 + 5 + 5 + 3).
2020-07-20Improved description of USE_THOUSAND_SEPARATOR setting.Adam Johnson
2020-07-20Used context manager version of tempfile.TemporaryDirectory() in ↵Jon Dufresne
utils_tests.test_autoreload.
2020-07-20Fixed #17653 -- Allowed using zero as AutoFields value on MySQL if ↵Mariusz Felisiak
NO_AUTO_VALUE_ON_ZERO SQL mode is enabled.
2020-07-20Used temporary directory in RestartWithReloaderTests.test_manage_py().Tom Forbes
Using the current directory can cause a PermissionError.
2020-07-20Fixed #31784 -- Fixed crash when sending emails on Python 3.6.11+, 3.7.8+, ↵Florian Apolloner
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-20Refs #31784 -- Added test for preventing header injection in display name of ↵Mariusz Felisiak
email addresses.
2020-07-17Bumped asgiref requirement to >= 3.2.10.Mariusz Felisiak
Forwardported 3.1 release notes from 474f65406fe2e568482d83db2ea94c0409afa039.
2020-07-17Improved ManyToManyField.through docs.Adam Johnson
2020-07-17Fixed #31731 -- Removed unreachable code for resetting sequences of ↵Ravindar Sharma
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 c39ec6dccb389fbb4047e44f5247e18bb76ae598 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-16Refs #31502 -- Made minor edits to Model._state docs.Adam Johnson
2020-07-16Fixed typo in DecimalValidator tests.Claudio Catterina
This replaces redundant test for -Infinity with +Infinity.
2020-07-16Fixed #31623 -- Allowed specifying number of adjacent time units in ↵Tim Park
timesince()/timeuntil().
2020-07-16Stopped adapting DecimalField values to strings on Oracle.Mariusz Felisiak
cx_Oracle handles decimal.Decimal. expressions_case.tests.CaseExpressionTests.test_update_decimal fails without this change. Follow up to 9c5c9bd7091b60fdccc405890dc4f44a8010e954.
2020-07-16Refs #31790 -- Removed incorrect item from 2.2.15 and 3.0.9 release notes.Mariusz Felisiak
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-16Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in ↵Mariusz Felisiak
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-15Refs #30446 -- Removed unnecessary Value(..., output_field) in docs and tests.Simon Charette
2020-07-15Fixed #30446 -- Resolved Value.output_field for stdlib types.Simon Charette
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-15FIxed typo in docs/ref/contrib/postgres/forms.txt.Eric Theise
2020-07-14Added admin translatable string.Claude Paroz
Forward port of dda8a2aa1d31a4dc818a6950565811c7f32d352a from stable/3.1.x.
2020-07-14Added Igbo language.Kelechi Precious Nwachukwu
2020-07-14Refs #30446 -- Defined output_field of BoundingCircle() GIS database function.Simon Charette
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-14Stopped adapting DecimalField values to strings on PostgreSQL.Simon Charette
The psycopg2 backend uses the type information to provide type hints.
2020-07-14Refs #25425 -- Allowed unresolved Value() instances to be compiled.Simon Charette
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-13Fixed #21528 -- Added note about filtering form field's queryset based on ↵Caio Ariede
instance to admin docs.
2020-07-13Fixed #30457 -- Added TestCase.captureOnCommitCallbacks().Adam Johnson