summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-12Fixed #34086 -- Confirmed support for PostGIS 3.3.Paolo Melchiorre
2022-10-11Completed test coverage for contenttypes models.Marcelo Galigniana
2022-10-10Fixed #34081 -- Reverted "Fixed #33994 -- Corrected position of extrastyle ↵Mariusz Felisiak
and extrahead blocks in admin base template." This reverts commit a69b0e9cfe0af7cd2deaf55c069453c4c4598604.
2022-10-10Used test client headers in i18n tests.Adam Johnson
2022-10-10Fixed wrapping of long model names in the admin.Mariusz Felisiak
2022-10-10Fixed #32833 -- Fixed ContentTypeManager.get_for_models() crash when using ↵Sarah Boyce
in migrations. Co-authored-by: Heraldo Lucena <23155511+HMaker@users.noreply.github.com>
2022-10-10Fixed #25996 -- Revised performance section in URLs topic docs.Ralph Reid
2022-10-08Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner
assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
2022-10-07Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() ↵Mariusz Felisiak
where appropriate. Follow up to 3f7b3275627385f8f7531fca01cdda50d4ec6b6e.
2022-10-07Refs #33990 -- Renamed SimpleTestCase.assertFormsetError() to ↵Gregor Gärtner
assertFormSetError(). Co-Authored-By: Michael Howitz <mh@gocept.com>
2022-10-07Fixed #33797 -- Prioritized cached database backend for cached sessions in docs.J.V. Zammit
Co-authored-by: Adam Johnson <me@adamj.eu>
2022-10-07Removed hardcoded pks in TestQuerying.test_group_by_order_by_aliases test.Mariusz Felisiak
2022-10-07Bumped versions in pre-commit and npm configurations.Mariusz Felisiak
2022-10-06Fixed #32603 -- Made ModelAdmin.list_editable use transactions.Shubh1815
2022-10-06Refs #30158 -- Removed alias argument for Expression.get_group_by_cols().Simon Charette
Recent refactors allowed GROUP BY aliasing allowed for aliasing to be entirely handled by the sql.Query.set_group_by and compiler layers.
2022-10-06Refs #31150 -- Enabled implicit GROUP BY aliases.Simon Charette
This ensures implicit grouping from aggregate function annotations groups by uncollapsed selected aliases if supported. The feature is disabled on Oracle because it doesn't support it.
2022-10-06Refs #33992 -- Refactored subquery grouping logic.Simon Charette
This required moving the combined queries slicing logic to the compiler in order to allow Query.exists() to be called at expression resolving time. It allowed for Query.exists() to be called at Exists() initialization time and thus ensured that get_group_by_cols() was operating on the terminal representation of the query that only has a single column selected.
2022-10-06Refs #33308 -- Enabled explicit GROUP BY and ORDER BY aliases.Simon Charette
This ensures explicit grouping from using values() before annotating an aggregate function groups by selected aliases if supported. The GROUP BY feature is disabled on Oracle because it doesn't support it.
2022-10-05Fixed #33768 -- Fixed ordering compound queries by nulls_first/nulls_last on ↵Simon Charette
MySQL. Columns of the left outer most select statement in a combined query can be referenced by alias just like by index. This removes combined query ordering by column index and avoids an unnecessary usage of RawSQL which causes issues for backends that specialize the treatment of null ordering.
2022-10-05Fixed #34071 -- Improved error message for Range(Min/Max)ValueValidator.Jack Linke
2022-10-04Avoided unnecessary call to .get_source_expressions().Simon Charette
The SQLCompiler._order_by_pairs() generator method yields instances of OrderBy and not Expression.
2022-10-04Removed note about "0" IP address from tutorial.Mariusz Felisiak
Tutorial should offer only minimum, necessary, explanation.
2022-10-04Fixed #34068 -- Corrected output of runserver command for "0" IP address.Dhanush
Thanks David Sanders for the review.
2022-10-04Added CVE-2022-36359 to security archive.Carlton Gibson
2022-10-04Added stub release notes for 4.1.3 release.Carlton Gibson
2022-10-04Fixed CVE-2022-41323 -- Prevented locales being interpreted as regular ↵Adam Johnson
expressions. Thanks to Benjamin Balder Bach for the report.
2022-10-04Fixed #34012 -- Made QuerySet.order_by() apply transforms on related fields ↵David Sanders
for models with Meta.ordering. This makes QuerySet.order_by() no longer ignore trailing transforms for models with Meta.ordering. As a consequence, FieldError is raised in such cases for non-existent fields. Thanks to Klaas van Schelven for the report and Mariusz Felisiak for the review and advice.
2022-10-03Fixed #34070 -- Added subsecond support to Now() on SQLite and MySQL.Lily Foote
2022-10-03Refs #32987 -- Relaxed system check for template tag modules with the same ↵Mariusz Felisiak
name by turning into a warning. Thanks Claude Paroz for the report. Regression in 004b4620f6f4ad87261e149898940f2dcd5757ef.
2022-10-03Fixed #23353 -- Used "raise from" when raising TransactionManagementError.David Wobrock
This change sets the __cause__ attribute to raised exceptions.
2022-10-01Clarified how to reference RelatedObjectDoesNotExist exceptions.David Sanders
2022-10-01Refs #34058 -- Fixed changing/deleting sequences when altering pre-Django ↵Mariusz Felisiak
4.1 auto fields on PostgreSQL. Thanks Anders Kaseorg for the report. Follow up to 19e6efa50b603af325e7f62058364f278596758f. Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6.
2022-09-30Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers."Mariusz Felisiak
This reverts 4f8c7fd9d91b35e2c2922de4bb50c8c8066cbbc6 and adds two regression tests: - test_related_manager_refresh(), and - test_create_copy_with_m2m(). Thanks joeli for the report.
2022-09-30Fixed #32095 -- Made QuerySet.update_or_create() save only fields passed in ↵sarahboyce
defaults or with custom pre_save(). Thanks Florian Apolloner for the initial patch.
2022-09-29Refs #32095 -- Added model's Options._non_pk_concrete_field_names property.sarahboyce
2022-09-29Fixed #34062 -- Updated View.http_method_not_allowed() to support async.Antoine Lorence
As with the options() methods, wrap the response in a coroutine if the view is async. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2022-09-29Fixed #34058 -- Changed sequence types when altering pre-Django 4.1 auto ↵Mariusz Felisiak
fields on PostgreSQL. Thanks Anders Kaseorg for the report. Thanks Florian Apolloner for pair programming. Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6.
2022-09-29Fixed #33026 -- Mentioned RequestFactory in testing tools docs.Chris Wedgwood
2022-09-28Refs #34010 -- Made --debug-mode work for parallel tests using spawn.Adam Johnson
Bug in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc. Thanks Kevin Renskers for the report.
2022-09-28Fixed #34010 -- Made parallel tests using spawn set up Django.Adam Johnson
Bug in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc. Thanks Kevin Renskers for the report.
2022-09-28Fixed #34056 -- Updated the list of common passwords for ↵Paolo Melchiorre
CommonPasswordValidator.
2022-09-28Improved error message for ASCIIUsernameValidator.Paolo Melchiorre
2022-09-28Fixed #34025 -- Fixed selecting ModelAdmin.autocomplete_fields after ↵David Sanders
adding/changing related instances via popups. Regression in c72f6f36c13a21f6db3d4f85d2d3cec87bad45e6. Thanks Alexandre da Silva for the report.
2022-09-28Removed obsolete test_skip_link_is_skipped_when_there_is_searchbar test.Mariusz Felisiak
searchbar doesn't have autofocus since d938b3b2577807ffd585f654caa0f37d9574e565.
2022-09-28Fixed #34051 -- Made makemigrations --check exit before making migrations.Jacob Walls
2022-09-28Changed note about update_fields and pre_save() to admonition.Mariusz Felisiak
Follow up to bf47c719719d0e190a99fa2e7f959d5bbb7caf8a.
2022-09-27Fixed #34052 -- Made migrate --check don't emit signals and output when up ↵JunKi Yoon
to date.
2022-09-27Fixed #33464 -- Resolved output_field for combined numeric expressions with ↵David Wobrock
MOD operator.
2022-09-27Doc'd when pre_save() is called with Model.save()'s update_fields.sarahboyce
2022-09-27Added tests for QuerySet.update_or_create() with multi-table inheritance.sarahboyce