summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2020-07-30Fixed #31822 -- Added support for comments URL per feed item.Viktor Garske
The item_comments hook returns a comments URL which is then used by the feed builder.
2020-07-30Refs #31829 -- Added ↵Tim Graham
DatabaseFeatures.json_key_contains_list_matching_requires_list. CockroachDB's behavior matches PostgreSQL.
2020-07-29Fixed #28507 -- Made ValidationError.__eq__() ignore messages and params ↵David Smith
ordering. Co-authored-by: caleb logan <clogan202@gmail.com>
2020-07-29Fixed #27395 -- Added sitemap 'alternates' generation.Florian Demmer
Updated the sitemap generator and default template to optionally include link elements with hreflang attribute to alternate language URLs.
2020-07-29Refs #27395 -- Added XML namespace declaration to sitemap template.Carlton Gibson
As per Google recommendations: https://support.google.com/webmasters/answer/189077?hl=en
2020-07-29Fixed #29324 -- Made SECRET_KEY validation lazy (on first access).Florian Apolloner
2020-07-29Fixed #31783 -- Fixed crash when filtering againts "negate" field.Hasan Ramezani
Thanks Simon Charette for the initial patch.
2020-07-29Completed test coverage for colorize().David Smith
2020-07-28Fixed #31829 -- Used JSONField __contains lookup on key transforms.sage
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-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-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-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-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-20Fixed #31769 -- Improved default naming of merged migrations.Jon Dufresne
47 gives 60 in total (47 + 5 + 5 + 3).
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-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-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-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 #30457 -- Added TestCase.captureOnCommitCallbacks().Adam Johnson
2020-07-13Fixed #31674 -- Made technical 500 debug page respect __suppress_context__.Tom Forbes
2020-07-10Fixed #31509 -- Made DiscoverRunner enable faulthandler by default.ovkulkarni
2020-07-10Refs #30578 -- Made SelectDateWidget.format_value() independent of USE_L10N.Claude Paroz
2020-07-10Sorted conflicting migrations by names.François Freitag
2020-07-09Fixed #29789 -- Added support for nested relations to FilteredRelation.matt ferrante
2020-07-09Used urllib.parse.urljoin() in auth_tests to join URLs.Jon Dufresne
As the strings represent URLs and not paths, should use urllib to manipulate them.
2020-07-09Fixed #31773 -- Fixed preserving output_field in ExpressionWrapper for ↵Mariusz Felisiak
combined expressions. Thanks Thodoris Sotiropoulos for the report and Simon Charette for the implementation idea. Regression in df32fd42b84cc6dbba173201f244491b0d154a63.
2020-07-08Refs #30400 -- Improved typography in debug and csrf templates.Jon Dufresne
2020-07-08Fixed #31573 -- Made QuerySet.update() respect ordering on MariaDB/MySQL.davidchorpash
2020-07-07Fixed #31767 -- Fixed QuerySet.none() on combined queryset.Mariusz Felisiak
2020-07-07Fixed #31713 -- Added SpatialReference support to GDALRaster.transform().rico-ci
2020-07-06Refs #26445 -- Allowed using UserManager.create_user()/create_superuser() in ↵Hasan Ramezani
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.