summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2020-12-28Refs #31358 -- Fixed decoding salt in Argon2PasswordHasher.Florian Apolloner
Argon2 encodes the salt as base64 for representation in the final hash output. To be able to accurately return the used salt from decode(), add padding, b64decode, and decode from latin1 (for the remote possibility that someone supplied a custom hash consisting solely of bytes -- this would require a manual construction of the hash though, Django's interface does not allow for that).
2020-12-28Refs #31358 -- Simplified Argon2PasswordHasher.must_update() by using decode().Florian Apolloner
2020-12-28Fixed #32301 -- Made clearsessions raise CommandError when clear_expired() ↵François Freitag
is not implemented.
2020-12-28Fixed #32158 -- Fixed loaddata crash on SQLite when table/column names are ↵Chinmoy Chakraborty
SQL keywords.
2020-12-28Fixed #27827 -- Used "raise from" when raising InvalidTemplateLibrary ↵Jacob Walls
exceptions in get_package_libraries(). This change sets the __cause__ attribute to raised exceptions and makes small cleanups in error messages.
2020-12-23Refs #26167 -- Made DatabaseSchemaEditor._create_index_sql()'s fields ↵Hannes Ljungberg
argument optional and kwarg-only.
2020-12-22Fixed #32285 -- Raised ImproperlyConfigured when AppConfig.label is not a ↵Hasan Ramezani
valid Python identifier.
2020-12-22Refs #32285 -- Made AppConfigStub do not call super().__init__().Hasan Ramezani
Calling super().__init__() is unnecessary and enforces the use of various workarounds.
2020-12-21Fixed #32269 -- Fixed parse_duration() for negative days in ISO 8601 format.starryrbs
2020-12-21Fixed #32208 -- Allowed adding lazy() objects.Hasan Ramezani
Co-authored-by: Claude Paroz <claude@2xlibre.net>
2020-12-18Fixed #32262 -- Fixed migration optimization for model creation and Meta ↵Hasan Ramezani
options removal.
2020-12-17Fixed #29867 -- Added support for storing None value in caches.Nick Pope
Many of the cache operations make use of the default argument to the .get() operation to determine whether the key was found in the cache. The default value of the default argument is None, so this results in these operations assuming that None is not stored in the cache when it actually is. Adding a sentinel object solves this issue. Unfortunately the unmaintained python-memcached library does not support a default argument to .get(), so the previous behavior is preserved for the deprecated MemcachedCache backend.
2020-12-16Fixed #32089 -- Fixed prefetch_related_objects() when some objects are ↵Alexey Nigin
already fetched. Thanks Dennis Kliban for the report and Adam Johnson for the initial patch. Co-authored-by: Adam Johnson <me@adamj.eu>
2020-12-15Fixed #31007 -- Allowed specifying type of auto-created primary keys.Tom Forbes
This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField.
2020-12-15Fixed #32261 -- Added error logging to Signal.send_robust().Ayush Bansal
2020-12-15Fixed typo in django/core/cache/backends/base.py docstring.Abhishek Ghaskata
2020-12-14Fixed #32240 -- Made runserver suppress ↵Petter Strandmark
ConnectionAbortedError/ConnectionResetError errors. See https://bugs.python.org/issue27682 and https://github.com/python/cpython/pull/9713
2020-12-14Ensured that registered checks accept keyword arguments.Adam Johnson
2020-12-14Added docstring to django.utils.inspect.func_accepts_kwargs().Adam Johnson
2020-12-11Fixed #32252 -- Fixed __isnull=True on key transforms on SQLite and Oracle.sage
__isnull=True on key transforms should not match keys with NULL values.
2020-12-11Refs #32178 -- Changed BaseDatabaseFeatures.django_test_expected_failures to ↵Hasan Ramezani
set().
2020-12-10Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵Hasan Ramezani
failures. Co-authored-by: Tim Graham <timograham@gmail.com>
2020-12-09Fixed #32193 -- Deprecated MemcachedCache.Mariusz Felisiak
2020-12-08Fixed grammar in HttpResponse docstring.ᴙɘɘᴙgYmɘᴙɘj
2020-12-08Fixed #32233 -- Cleaned-up duplicate connection functionality.Florian Apolloner
2020-12-07Refs #21012 -- Removed unnecessary _create_cache() hook.Florian Apolloner
This removes unused (since d038c547b5ce585cbf9ef5bb7e5298f52e4a243b) workaround to load a cache backend with its dotted import path and moves remaining logic to the CacheHandler. Thanks Tim Graham for the review.
2020-12-07Removed lhs_only argument from KeyTransform.preprocess_lhs().sage
2020-12-03Fixed #32235 -- Made ReadOnlyPasswordHashField disabled by default.Timo Ludwig
2020-12-02Fixed #32179 -- Added JSONObject database function.Artur Beltsov
2020-11-30Added SpatialFeatures.supports_tolerance_parameter.Tim Graham
2020-11-30Refs #31978 -- Fixed hint in admin's password reset confirmation form for ↵Mariusz Felisiak
custom username fields. Thanks Jaap Roes for the report.
2020-11-28Fixed #32227 -- Prevented crash when setUpTestData() errors with --debug-sql.Adam Johnson
Thanks Mariusz Felisiak for the report.
2020-11-28Fixed #21021 -- Changed BaseGeometryWidget's default geometry type to ↵Giannis Adamopoulos
'Geometry'.
2020-11-28Refs #32230 -- Made LayerMapping support pathlib.Path.Mariusz Felisiak
2020-11-28Fixed #32230 -- Made DataSource support pathlib.Path.Hasan Ramezani
2020-11-27Fixed #32220 -- Added durable argument to transaction.atomic().Ian Foote
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-25Fixed #32223 -- Removed strict=True in Path.resolve() in autoreloader.Mariusz Felisiak
This reverts commit e28671187903e6aca2428374fdd504fca3032aee which caused permission errors when users didn't have permissions to all intermediate directories in a Django installation path. Thanks Jakub Szafrański for the report.
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-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-24Simplified JSONField key transforms by using JSON_OBJECT() on Oracle.Mariusz Felisiak
2020-11-24Improved bidirectionality on the 'Congrats' page.Thibaud Colas
Follow up to 9012033138fa41b573d3e4e3f0dfa8b94a4719c6.
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-20Added explicit HTMLElement.dir attribute in templates.Author: Nick Pope
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-19Fixed #32201 -- Removed obsolete isort:skip's.Seamus Quinn
Obsolete as of isort 5.