summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-03-09Refs #33476 -- Prevented formatting of .py-tpl files with black by pre-commit.Nick Pope
When using `pre-commit run --all-files`, files explicitly passed to black are processed even if they don't match the `include` configuration option. For some reason, (only) one of the `*.py-tpl` files is picked up by pre-commit. We can avoid this by explicitly excluding certain patterns of files for the black hook in the pre-commit configuration.
2022-03-09Refs #33476 -- Used black's force-exclude instead of extend-exclude.Nick Pope
When using `pre-commit run --all-files`, because the filename is passed explicitly, the file referred to in `extend-exclude` is not properly excluded. Use `force-exclude` instead to say we really mean it. See https://github.com/psf/black/issues/438.
2022-03-09Fixed #33567 -- Avoided setting default text/html content type on responses.Claude Paroz
2022-03-09Removed unused and unnecessary words from docs/spelling_wordlist.David
2022-03-09Changed "bolded" to "in bold" in docs.David Smith
2022-03-08Rewrote strip_tags test file to lorem ipsum.Adam Johnson
2022-03-08Rewrote some references to "master".Adam Johnson
Following d9a266d657f66b8c4fa068408002a4e3709ee669.
2022-03-08Refs #33173 -- Used locale.getlocale() instead of getdefaultlocale().Mariusz Felisiak
locale.getdefaultlocale() was deprecated in Python 3.11, see https://bugs.python.org/issue46659.
2022-03-08Used Ubuntu 20.04 for docs GitHub action.Mariusz Felisiak
2022-03-08Clarified that tutorial background image should be self-provided.Adam Johnson
2022-03-08Fixed #33563 -- Fixed contenttype reverse data migration crash with a ↵Hameed Gifford
multiple databases setup.
2022-03-07Made Github actions auto-cancel redundant jobs.Mariusz Felisiak
2022-03-07Bumped versions in Github actions configuration to v3.Mariusz Felisiak
2022-03-07Refs #33562 -- Made HttpResponse.set_cookie() raise ValueError when both ↵Luke Plant
"expires" and "max_age" are passed. This fixes the case where you might pass set_cookie(expires=val, max_age=val) and max_age is silently ignored.
2022-03-07Fixed #33562 -- Made HttpResponse.set_cookie() support timedelta for the ↵Luke Plant
max_age argument.
2022-03-07Refs #33562 -- Added tests HttpRequest.get_signed_cookie() with timedeltas.Luke Plant
2022-03-04Fixed #29865 -- Added logical XOR support for Q() and querysets.Ryan Heard
2022-03-04Refs #31169 -- Prevented infinite loop in tests on failures.Mariusz Felisiak
Regression in ae91ecf6a1037fb67d14841b66ac19d4c2ccc4ac.
2022-03-04Refs #11293 -- Added test for filtering aggregates with negated & operator.Mariusz Felisiak
2022-03-04Refs #33446 -- Allowed variable whitespace in CSS source map references.Adam Johnson
Follow up to dc8bb35e39388d41b1f38b6c5d0181224e075f16. The Webpack default is to output CSS source map comments like `/*# sourceMappingURL=main.css.map*/`. Also, Chromium allows tabs.
2022-03-03Refs #27624 -- Optimized Query.clone() a bit.Keryn Knight
2022-03-03Refs #27624 -- Optimized sql.Query creation by moving immutable/singleton ↵Keryn Knight
attributes to class attributes.
2022-03-03Optimized lazy wrappers a bit.Collin Anderson
This avoids an extra __getattribute__() call for self._wrapped.
2022-03-02Refs #33546 -- Optimized handling content types in HttpResponseBase.__init__().Keryn Knight
This removes an extraneous conditional causing "Content-Type" to be checked within the ResponseHeaders twice, if a content_type parameter is provided.
2022-03-02Refs #33546 -- Optimized HttpResponseBase.charset a bit.Keryn Knight
This avoids scanning the Content-Type if it's empty, allowing the Content-Type header itself to have a charset assigned without using the re module.
2022-03-02Refs #33546 -- Optimized ResponseHeaders._convert_to_charset() by reducing ↵Keryn Knight
the type-checking duplication. In the common case, where keys and values are be encoded into ascii/latin-1, defer the checking for newlines until it's been successfully coerced to a string. Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2022-03-02Refs #33546 -- Avoided unpacking data in ResponseHeaders when not necessary.Keryn Knight
2022-03-02Refs #10188 -- Added tests for BadHeaderErrors when HTTP header with ↵Keryn Knight
newlines cannot be encoded/decoded.
2022-03-02Fixed #33553 -- Used built-in math functions in SQLite 3.35+.Nick Pope
In SQLite 3.35+ some math functions are available built-in as long as they are not disabled at compile time. We can introspect this and use these built-in functions in preference to our slower implementations.
2022-03-01Added stub release notes for Django 4.0.4.Carlton Gibson
2022-03-01Updated release date for version 4.0.3.Carlton Gibson
2022-03-01Fixed #33547 -- Fixed error when rendering invalid inlines with readonly ↵Mariusz Felisiak
fields in admin. Regression in de95c826673be9ea519acc86fd898631d1a11356. Thanks David Glenck for the report.
2022-02-28Fixed #33524 -- Allowed overriding empty_label for ForeignKey in ↵Hrushikesh Vaidya
ModelAdmin.radio_fields.
2022-02-26Fixed #33527 -- Removed unnecessary code in ModelAdmin._changeform_view().Dulalet
Co-authored-by: Daulet1 <d.abduali@thefactory.kz>
2022-02-26Fixed #33508 -- Fixed DatabaseFeatures.supports_index_column_ordering on ↵Alokik Vijay
MariaDB 10.8+.
2022-02-25Added test for removing through model from ManyToManyField.Mariusz Felisiak
2022-02-25Optimized docs images.Mariusz Felisiak
2022-02-25Fixed #31486 -- Deprecated passing unsaved objects to related filters.Albert Defler
Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
2022-02-25Fixed #33267 -- Added link to related item to related widget wrapper in admin.Shubh1815
2022-02-24Refs #7488, Refs #19524 -- Removed obsolete ↵Albert Defler
ModelInheritanceTest.test_issue_7488() test. Obsolete since e9c24bef74e55729b190cf07e0ac452aa4c86fcd.
2022-02-24Fixed #33539 -- Fixed spaces in WITH SQL for indexes on PostgreSQL.Anders Kaseorg
2022-02-24Refs #33328 -- Added some advice regarding handling formset:added/removed in ↵Matthias Kestenholz
3rd party libraries
2022-02-23Fixed #33532 -- Optimized CaseInsensitiveMapping instantiation for dicts.Keryn Knight
Internal usages of this class (e.g. HttpHeaders) provide it with a dict, so testing for that type first avoids the cost of going through the potential __instancecheck__ + _abc_instancecheck to establish it's a Mapping. Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2022-02-23Fixed #28889 -- Prevented double submission of admin forms.mgaligniana
Added a JavaScript confirm() to catch double-submissions, when the change form has already been submitted. Thanks to Adam Johnson, Claude Paroz, Keryn Knight, and Thibaud Colas for review.
2022-02-23Refs #31169 -- Added DatabaseCreation.setup_worker_connection() hook.Valz
2022-02-23Fixed #33328 -- Transformed formset:added/removed to native JS events.Claude Paroz
2022-02-23Fixed #33434 -- Changed font-size in admin CSS to use rem units.ravi kunwar
2022-02-23Removed unnecessary font-size in admin hr CSS.ravi kunwar
2022-02-23Refs #33476 -- Added warning to optimizemigration/squashmigrations commands ↵Mariusz Felisiak
when black cannot be applied.
2022-02-22Refs #32873 -- Avoided looking up settings._USE_L10N_INTERNAL twice.Collin Anderson