summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-23Fixed #32913 -- Made watchman reloader tests less flaky.Nick Pope
2021-07-23Refs #32902 -- Moved ensure_csrf_cookie_view after protected_view.Chris Jerdonek
2021-07-23Fixed #32902 -- Fixed CsrfViewMiddleware.process_response()'s cookie reset ↵Chris Jerdonek
logic. Thanks Florian Apolloner and Shai Berger for reviews.
2021-07-23Refs #32902 -- Added CSRF test when rotate_token() is called between ↵Chris Jerdonek
resetting the token and processing response.
2021-07-23Fixed #32950 -- Removed myproject from imports in admin docs where appropriate.Abhyudai
2021-07-22Fixed #32275 -- Added scrypt password hasher.ryowright
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-07-22Fixed #32930 -- Fixed URLValidator when port numbers < 10.Wu Haotian
2021-07-22Added more test cases with port numbers for URLValidator.Wu Haotian
2021-07-22Refs #32508 -- Raised TypeError/ValueError instead of using "assert" in ↵Mariusz Felisiak
encode() methods of some password hashers.
2021-07-22Fixed #32951 -- Removed Query.where_class & co.Nick Pope
Unused since 3caf957ed5eaa831a485abcb89f27266dbf3e82b.
2021-07-21Refs #32949 -- Adjusted release note wording.Carlton Gibson
2021-07-21Fixed #32949 -- Restored invalid number handling in DecimalField.validate().yakimka
DecimalField must itself validate() values, such as NaN, which cannot be passed to validators, such as MaxValueValidator, during the run_validators() phase. Regression in cc3d24d7d577f174937a0744d886c4c7123cfa85.
2021-07-20Fixed #32704 -- Fixed list of deferred fields when chaining QuerySet.defer() ↵David Wobrock
after only().
2021-07-20Added more tests for chaining QuerySet.defer() after only().David Wobrock
2021-07-20Fixed #32944 -- Avoided unnecessary WhereNode.add() calls.Keryn Knight
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-07-20Refs #32940 -- Removed unnecessary branch in Node.add().Keryn Knight
The "data in self.children" branch was causing data.__eq__ to be called for each entries in "self.children" which resulted in a huge slowdown during queryset construction. It's purpose was to prevent queries of the form Model.objects.filter(foo='bar').filter(foo='bar') from resulting in WHERE foo='bar' AND foo='bar' but it's not covered by the suite and has arguable performance benefits since it's not very common and SQL engines are usually very good at folding/optimizing these. See also #32632 for prior discussion around comparing data to the Node's children. Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2021-07-20Refs #32940 -- Removed Node.add()'s unused squash parameter.Keryn Knight
Unused since its introduction in d3f00bd5706b35961390d3814dd7e322ead3a9a3. Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2021-07-19Refs #10929 -- Deprecated forced empty result value for PostgreSQL aggregates.Nick Pope
This deprecates forcing a return value for ArrayAgg, JSONBAgg, and StringAgg when there are no rows in the query. Now that we have a ``default`` argument for aggregates, we want to revert to returning the default of ``None`` which most aggregate functions return and leave it up to the user to decide what they want to be returned by default.
2021-07-19Fixed #10929 -- Added default argument to aggregates.Nick Pope
Thanks to Simon Charette and Adam Johnson for the reviews.
2021-07-19Fixed #32941 -- Removed get_format_modules()'s unused reverse argument.Keryn Knight
Unused since 0d8b523422fda71baa10807d5aebefd34bad7962.
2021-07-19Fixed #32942 -- Confirmed support for PostGIS 3.1.Nick Pope
2021-07-19Removed unnecessary tuple construction in Node.__eq__().Nick Pope
2021-07-19Fixed wording of AuthViewsTestCase's docstring.Chris Jerdonek
2021-07-19Fixed typo in docs/ref/databases.txt.Jacob Walls
2021-07-16Fixed #32655 -- Deprecated extra_tests argument for ↵Jacob Walls
DiscoverRunner.build_suite()/run_tests().
2021-07-16Fixed typo in docs/releases/3.1.13.txt.Jacob Walls
2021-07-16Fixed typo in docs/topics/signals.txt.Haki Benita
2021-07-16Fixed #32924 -- Changed BaseForm.get_initial_for_field() to remove ↵Chris Jerdonek
microseconds when needed.
2021-07-16Refs #32924 -- Changed test_initial_datetime_values() to use subTests.Chris Jerdonek
2021-07-16Refs #32924 -- Changed test_get_initial_for_field() to use subTests.Chris Jerdonek
2021-07-16Prevented SQLCompiler.execute_sql() from closing cursor twice.Nick Pope
cursor_iter() helper calls cursor.close() in a finally block.
2021-07-16Fixed #32928 -- Confirmed support for GDAL 3.3.David Smith
2021-07-16Fixed typo in docs/internals/deprecation.txt.Jacob Walls
2021-07-15Fixed #32910 -- Unified different plural equations for the same language in ↵Mariusz Felisiak
contrib apps. Thanks Martin Svoboda for the report and initial patch.
2021-07-15Fixed #32929 -- Fixed handling query strings in AsyncRequestFactory.pochangl
2021-07-15Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵Daniyal
django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-07-15Refs #32920 -- Added BoundField._has_changed() for use in ↵Chris Jerdonek
BaseForm.changed_data().
2021-07-15Fixed #32920 -- Changed BaseForm to access its values through bound fields.Chris Jerdonek
2021-07-15Fixed #32905 -- Added CSS class for non-form errors of formsets.Ties Jan Hefting
2021-07-14Added note about zero timeout in cache settings docs.Nick Pope
2021-07-14Fixed typo in docs/internals/contributing/committing-code.txt.ᴙɘɘᴙgYmɘᴙɘj
2021-07-14Fixed #21936 -- Allowed DeleteView to work with custom Forms and ↵Carlton Gibson
SuccessMessageMixin. Thanks to Mariusz Felisiak for review. Co-authored-by: Demetris Stavrou <demestav@gmail.com> Co-authored-by: Caroline Simpson <github@hoojiboo.com>
2021-07-13Refs #31676 -- Removed Django Core-Mentorship mailing list references in docs.Mariusz Felisiak
2021-07-13Simplified django.utils.dateformat methods.Nick Pope
This removes unnecessary format('O') call, remove unnecessary method calls for simple cases in TimeFormat, and simplifies time zone handling in TimeFormat.
2021-07-13Completed test coverage for django.utils.dateformat.Nick Pope
2021-07-13Used subTest() in utils_tests.test_dateformat.Nick Pope
2021-07-13Fixed #32899 -- Added note about avoiding non-dict objects in JsonResponse docs.Hasan Ramezani
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-07-13Refs #32880 -- Made some titles consistent in how-to documents.Daniele Procida
This retitles documents for consistency, since some already (correctly) begin "How to...".
2021-07-13Fixed #32917 -- Added BaseForm._widget_data_value()/_field_data_value().Chris Jerdonek
2021-07-13Refs #23359 -- Corrected showmigrations help text for the --database option.Wilhelm Klopp