summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2020-11-27Fixed #25534, Fixed #31639 -- Added support for transform references in ↵Ian Foote
expressions. Thanks Mariusz Felisiak and Simon Charette for reviews.
2020-11-26Refs #27095 -- Allowed (non-nested) arrays containing expressions for ↵Hannes Ljungberg
ArrayField lookups.
2020-11-26Added test for ArrayField's __contains lookup with subqueries.Hannes Ljungberg
2020-11-25Fixed #32203 -- Fixed QuerySet.values()/values_list() crash on key ↵sage
transforms with non-string values on SQLite. Thanks Gordon Wrigley for the report.
2020-11-25Refs #32203 -- Added tests for QuerySet.values()/values_list() on key ↵sage
transforms with non-trivial values.
2020-11-25Fixed #32224 -- Avoided suppressing connection errors in supports_json_field ↵Mariusz Felisiak
on SQLite.` Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd. Thanks Juan Garcia Alvite for the report.
2020-11-24Added test for filtering JSONField key transforms with quoted strings.Mariusz Felisiak
2020-11-21Refs #15053 -- Clarified debug message when skipping templates to avoid ↵Daniel Hahler
recursion.
2020-11-20Fixed #32053 -- Fixed accessibility issues on the 'Congrats' page.Thibaud Colas
- Add lang attribute. - Use the same text for the page’s main heading, and title. - Add underlines for all links in copy. - Stop using h2 for link to the Django page. - Use h1 for the main heading. - Remove useless type attribute on style element. - Remove grey text that fails contrast checks. - Use a shade of grey that passes AAA contrast requirements. - Stop using h4 for footer links. - Add full stop in block-level links so VoiceOver correctly pauses between runs of text. - Hide main artwork for screen reader users. - Update SVG icons markup to be screen-reader friendly. - Switch options to be block-level links. - Remove unused markup.
2020-11-20Simplified MessageEncoder instantiation with default separators.Florian Apolloner
2020-11-19Fixed #32200 -- Fixed grouping by ExpressionWrapper() with Q objects.Hasan Ramezani
Thanks Gordon Wrigley for the report. Regression in df32fd42b84cc6dbba173201f244491b0d154a63.
2020-11-19Fixed #32202 -- Fixed autoreloader argument generation for Windows with ↵Carlton Gibson
Python 3.7-.
2020-11-16Fixed #31507 -- Added QuerySet.exists() optimizations to compound queries.David-Wobrock
2020-11-16Refs #27718 -- Doc'd and tested QuerySet.exists() for combined querysets.David-Wobrock
Supported since 84c1826ded17b2d74f66717fb745fc36e37949fd.
2020-11-16Fixed #32197 -- Improved error message when loading a database backend fails.Hasan Ramezani
2020-11-14Fixed #31496 -- Fixed QuerySet.values()/values_list() crash on combined ↵David-Wobrock
querysets ordered by annotations.
2020-11-13Changed docs and a code comment to use gender-neutral pronouns.Nick Pope
Follow up to e1b77238171cc96f4451a06fb4682e2378896238.
2020-11-13Unified admin action description generation.Nick Pope
Actions added to AdminSite.actions would not have the first character of their description capitalized. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-11-13Fixed #29712 -- Made makemessages warn if locales have hyphens and skip them.manav014
2020-11-13Refs #32120 -- Fixed test_add_inline_fk_index_update_data for ↵Tim Graham
DatabaseFeatures.indexes_foreign_keys. This test creates an index with editor.add_index() so it's present regardless of the database's behavior. Reverted the change from ede9fac75807fe5810df66280a60e7068cc97e4a.
2020-11-12Simplified TimeFormat.g().Nick Pope
2020-11-12Fixed #32149 -- Added support for years < 1000 to DateFormat.y().Sam
2020-11-11Fixed #31216 -- Added support for colorama terminal colors on Windows.MinchinWeb
Modern setups on Windows support terminal colors. The colorama library may also be used, as an alternative to the ANSICON library.
2020-11-11Fixed #31757 -- Adjusted system check for SECRET_KEY to warn about ↵Artem Kosenko
autogenerated default keys. Thanks Nick Pope, René Fleschenberg, and Carlton Gibson for reviews.
2020-11-11Fixed #32180 -- Added system check for file system caches absolute location.Carles Pina i Estany
2020-11-11Fixed #32183 -- Fixed shell crash when passing code with nested scopes.William Schwartz
2020-11-11Refs #25680 -- Added shell tests for globals available in passed commands.Mariusz Felisiak
2020-11-11Fixed #31762 -- Made reloading the database for tests use the base manager.Hasan Ramezani
Co-authored-by: Eugene Kulak <kulak.eugene@gmail.com>
2020-11-11Added SpatialFeatures.unsupported_geojson_options.Tim Graham
2020-11-10Avoided direct styles in admin templates.Claude Paroz
Direct styles might be forbidden by Content Security Policies.
2020-11-10Refs #31672 -- Made technical 500 debug page include exceptions without ↵Hasan Ramezani
tracebacks.
2020-11-10Fixed #32177 -- Made execute_from_command_line() use program name from the ↵William Schwartz
argv argument. This caused crash in environments where sys.argv[0] is incorrectly set to None.
2020-11-10Fixed #32182 -- Fixed crash of JSONField nested key transforms with subquery ↵Hannes Ljungberg
annotations on PostgreSQL.
2020-11-09Renamed BaseSpatialOperations.geography to ↵Tim Graham
BaseSpatialFeatures.supports_geography.
2020-11-07Removed hardcoded pks in migrations' test_alter_order_with_respect_to.Tim Graham
2020-11-06Refs #32045 -- Added tests for GenericRelatedObjectManager.clear()/remove().Craig Smith
2020-11-06Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani
This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-11-06Refs #31910 -- Fixed GeoQuerySetTest.test_geoagg_subquery() test on Oracle 18c.Mariusz Felisiak
2020-11-05Fixed #25791 -- Implement autoreload behaviour for cached template loader.Tom Forbes
2020-11-05Refs #25791 -- Added get_dirs() method to cached template loader.Tom Forbes
2020-11-05Fixed #22276 -- Fixed crash when formset management form is invalid.Jon Dufresne
Co-authored-by: Patryk Zawadzki <patrys@room-303.com>
2020-11-05Fixed #31550 -- Adjusted ASGI test_file_response for various Windows content ↵Christopher Keith
types.
2020-11-04Fixed #32168 -- Removed serial pk assumption in aggregation_regress tests.Christopher Wang
2020-11-04Refs #32168 -- Fixed Publisher assertions in AggregationTests.test_more_more.Christopher Wang
Refer to Publisher objects instead of Books. Test regression in 1bf25e9bc6df6c2ae4c0b10fb839e101471e8373.
2020-11-04Fixed #32169 -- Added distinct support to JSONBAgg.Artur Beltsov
2020-11-04Fixed #31983 -- Added system check for file system caches location.christa
Thanks Johannes Maron and Nick Pope for reviews.
2020-11-04Fixed #32159 -- Ensured AsyncRequestFactory correctly sets headers.Carlton Gibson
2020-11-04Fixed #31910 -- Fixed crash of GIS aggregations over subqueries.Simon Charette
Regression was introduced by fff5186 but was due a long standing issue. AggregateQuery was abusing Query.subquery: bool by stashing its compiled inner query's SQL for later use in its compiler which made select_format checks for Query.subquery wrongly assume the provide query was a subquery. This patch prevents that from happening by using a dedicated inner_query attribute which is compiled at a later time by SQLAggregateCompiler. Moving the inner query's compilation to SQLAggregateCompiler.compile had the side effect of addressing a long standing issue with aggregation subquery pushdown which prevented converters from being run. This is now fixed as the aggregation_regress adjustments demonstrate. Refs #25367. Thanks Eran Keydar for the report.
2020-11-04Removed hardcoded pk in defer_regress test.Tim Graham
2020-11-04Fixed GenericRelationTests.test_annotate when primary key values are large.Tim Graham
On CockroachDB, primary key values stored in this fields are larger than they accept.