summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-22Fixed #33305 -- Fixed autodetector crash for ForeignKey with hardcoded "to" ↵Baptiste Mispelon
attribute. Co-authored-by: Simon Charette <charette.s@gmail.com>
2021-11-19Fixed #33229 -- Fixed ↵SwastikTripathi
BaseDatabaseOperations.adapt_datetimefield_value()/adapt_timefield_value() crash with expressions.
2021-11-19Refs #24121 -- Added __repr__() to BaseDatabaseWrapper, JoinPromoter, and ↵Jonny Park
SQLCompiler.
2021-11-18Added Malay language.jhisham
2021-11-18Refs #19721 -- Moved ModelAdmin.list_filter docs into a separate file.Shreya Bamne
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2021-11-18Configured Read The Docs to build all formats.Adam Johnson
`all` acts as an alias for all formats ([docs](https://docs.readthedocs.io/en/stable/config-file/v2.html#formats)). Whilst there are only three formats right now, this would auto expand to other formats in the future, which seems desirable?
2021-11-17Fixed crash building HTML docs since Sphinx 4.3.Mariusz Felisiak
See https://github.com/sphinx-doc/sphinx/commit/dd2ff3e911c751c06c81f494128fba56d8ecbafd.
2021-11-17Fixed #33163 -- Added example of connection signal handlers in ↵Roxane
AppConfig.ready() to docs.
2021-11-16Fixed #28357 -- Fixed ModelAdmin.prepopulated_fields on newly added stacked ↵Shubh1815
inline. Thanks Jakob Köhler for the initial patch.
2021-11-16Refs #32800 -- Avoided use of _does_token_match() in some CSRF tests.Chris Jerdonek
2021-11-16Refs #32800 -- Added CSRF tests for masked and unmasked secrets during GET.Chris Jerdonek
2021-11-15Fixed #33287 -- Made GeoJSON serializer use json.loads() instead of eval().Maxim Piskunov
Thanks David Wyde for the report.
2021-11-15Fixed #33278 -- Improved error for connection/query attempts against ↵SwastikTripathi
disallowed databases in tests.
2021-11-15Refs #33288 -- Removed SQLite's ↵Simon Charette
DatabaseIntrospection._get_foreign_key_constraints(). The get_relations() method returns the exact same data in a more generic format.
2021-11-15Fixed #33288 -- Made SQLite introspection use information schema for relations.Simon Charette
Previous solution was using brittle and complex parsing rules to extract them from the SQL used to define the tables. Removed a now unnecessary unit test that ensured the removed parsing logic accounted for optional spacing.
2021-11-15Refs #33288 -- Made SQLite introspection raise DatabaseError on nonexistent ↵Simon Charette
tables. All the other backends behave this way and we had to make adjustments to our test suite to account for this discrepancy. This also allows SQLite's get_relations() not to raise on a nonexistent table while making sure the InspectDBTestCase.test_introspection_errors test which ensures an error during introspection is surfaced in generated models files still passes.
2021-11-12Fixed #33161 -- Enabled durability check for nested atomic blocks in TestCase.Krzysztof Jagiello
Co-Authored-By: Adam Johnson <me@adamj.eu>
2021-11-12Refs #33247 -- Used XeLaTeX for PDF docs build.Mariusz Felisiak
2021-11-12Fixed #33279 -- Fixed handling time zones with "-" sign in names.Can Sarigol
Thanks yakimka for the report. Regression in fde9b7d35e4e185903cc14aa587ca870037941b1.
2021-11-12Moved RequestSite import to the toplevel.Claude Paroz
2021-11-11Fixed #33269 -- Made AnonymousUser/PermissionsMixin.has_perms() raise ↵Lie Ryan
ValueError on string or non-iterable perm_list.
2021-11-11Fixed #6106 -- Prevented makemessages from changing .po files when up to date.Ad Timmering
Co-authored-by: Daniyal Abbasi <abbasi.daniyal98@gmail.com>
2021-11-10Removed DatabaseIntrospection.get_key_columns().Mariusz Felisiak
Thanks Simon Charette for the report.
2021-11-10Fixed DatabaseIntrospection.get_relations() docstring.Tim Graham
The foreign keys are "in" the given table, not "to" it.
2021-11-09Refs #33263 -- Added warning to BaseDeleteView when delete() method is ↵Mariusz Felisiak
overridden. Follow up to 3a45fea0832c5910acee6e0d29f230f347a50462.
2021-11-09Refs #16063 -- Added tests for searching against multiple related fields in ↵Jacob Walls
admin changelist.
2021-11-08Fixed #33264 -- Made test runner return non-zero error code for unexpected ↵Baptiste Mispelon
successes.
2021-11-08Fixed #33257 -- Fixed Case() and ExpressionWrapper() with decimal values on ↵Matthijs Kooijman
SQLite.
2021-11-08Fixed #32980 -- Made models cache related managers.Keryn Knight
2021-11-05Fixed #33253 -- Reverted "Fixed #32319 -- Added ES module support to ↵Mariusz Felisiak
ManifestStaticFilesStorage." This reverts commit 91e21836f667c784a8a63ab1f18d81f553e679cb. `export` and `import` directives have several syntax variants and not all of them were properly covered. Thanks Hervé Le Roy for the report.
2021-11-05Fixed #33235 -- Removed "for = ..." from MultiWidget's <label>.David Smith
This improves accessibility for screen reader users.
2021-11-05Refs #33263 -- Expanded release notes for DeleteView adopting FormMixin.Carlton Gibson
2021-11-04Fixed #33237 -- Fixed detecting source maps in ManifestStaticFilesStorage ↵Carlton Gibson
for multiline files. Switched regex to multiline mode in order to match per-line, rather than against the whole file. Thanks to Joseph Abrahams for the report. Regression in 781b44240a06f0c868254f40f36ce46c927f56d1.
2021-11-04Fixed #27147 -- Allowed specifying bounds of tuple inputs for non-discrete ↵Guilherme Martins Crocetti
range fields.
2021-11-04Refs #29738 -- Added test for serializing psycopg2's NumericRange with ↵Guilherme Martins Crocetti
DecimalRangeField in migrations.
2021-11-04Enabled GitHub Code of Conduct.Adam Johnson
2021-11-04Corrected multiply defined labels in docs.Mariusz Felisiak
2021-11-04Refs #33247 -- Fixed rendering of Unicode chars and emojis in PDF docs build.Andrew Neitsch
2021-11-04Fixed #33262 -- Fixed crash of conditional aggregation on Exists().Hannes Ljungberg
2021-11-03Fixed #33260 -- Fixed crash when chaining QuerySet.exists() after ↵Hannes Ljungberg
select_for_update(of=()).
2021-11-03Refs #33247 -- Corrected configuration for Read The Docs.Carlton Gibson
This pins Sphinx version, because the default Sphinx version used by RTD is not compatible with Python 3.8+. This also, sets Python 3.8 for RTD builds which is compatible with all current versions of Django. Thanks to Mariusz Felisiak for the suggestion.
2021-11-03Fixed #33247 -- Added configuration for Read The Docs.Carlton Gibson
Co-authored-by: Andrew Neitsch <andrew@neitsch.ca>
2021-11-03Fixed #32996 -- Cached PathInfos on relations.Keryn Knight
PathInfo values are ostensibly static over the lifetime of the object for which they're requested, so the data can be memoized, quickly amortising the cost over the process' duration.
2021-11-03Fixed #33252 -- Made cache middlewares thread-safe.Iuri de Silvio
2021-11-03Refs #33252 -- Used @override_settings in ↵Iuri de Silvio
BaseCacheTests.test_cache_write_unpicklable_object()
2021-11-03Refs #33245 -- Minor edits to django.utils.html.urlize() changes.tim-mccurrach
Follow up to ad81b606a2b5276397460a654fc7ad901a54b91e.
2021-11-03Corrected module reference in contributing tutorial.Adam Johnson
2021-11-03Fixed typo in docs/topics/logging.txt.Brad
2021-11-02Fixed #32691 -- Made Exact lookup on BooleanFields compare directly to a ↵Roman
boolean value on MySQL. Performance regression in 37e6c5b79bd0529a3c85b8c478e4002fd33a2a1d. Thanks Todor Velichkov for the report. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-11-02Fixed #33187 -- Made inspectdb handle ForeignKey.to_field attribute.jordan.bae