summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-29Used model's Options.label where applicable.Mariusz Felisiak
Follow up to b7a3a6c9ef0a89625881b47594120bca55fa2e49.
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 #30367 -- Changed remaining "pip install" to "python -m pip install" in ↵Jon Dufresne
docs.
2020-12-23Removed forms-MAX_NUM_FORMS POST data in docsJon Dufresne
The field is ignored server-side and only exists as a client-side convenience. Removing it slightly simplifies the documentation and avoids some distractions. Added note:: for MIN_NUM_FORMS/MAX_NUM_FORMS in Understanding the management form section. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-12-23Refs #26167 -- Made DatabaseSchemaEditor._create_index_sql()'s fields ↵Hannes Ljungberg
argument optional and kwarg-only.
2020-12-23Fixed #32165 -- Added pre-commit hooksDavid Smith
* Added pre-commit hooks for isort, flake8 and eslint * Added documentation on how to install and use the tool
2020-12-23Refs #31265 -- Updated .eslintignore to match eslint testsDavid Smith
2020-12-23Fixed isolation of test_migrate_fake_split_initial.Mariusz Felisiak
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-21Added more assertions for parse_duration() with negative timedeltas.starryrbs
2020-12-21Fixed #32208 -- Allowed adding lazy() objects.Hasan Ramezani
Co-authored-by: Claude Paroz <claude@2xlibre.net>
2020-12-21Corrected code-block directives in docs/ref/models/meta.txt.Jon Dufresne
2020-12-21Fixed typo in docs/ref/files/storage.txt.joshuapatel
2020-12-20Updated isort URL to new location.Jon Dufresne
2020-12-18Fixed typo in tests/admin_views/test_history_view.py test name.Nick Pope
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-17Refs #30181 -- Corrected note about storing None in the cache.Nick Pope
2020-12-17Refs #32273 -- Completed test coverage for AdminSite.unregister().David Smith
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-16Fixed #32273 -- Doc'd AdminSite.unregister().Hasan Ramezani
2020-12-15Fixed typo in docs/ref/forms/widgets.txt.Mariusz Felisiak
Thanks rgs258 for the report.
2020-12-15Corrected formatting in settings docs.Carlton Gibson
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 tests/servers/tests.py.Mariusz Felisiak
2020-12-15Added python_requires/install_requires to setup.cfg example in reusable apps ↵Thomas Güttler
docs.
2020-12-15Added backticks to code literals in various docs.Jon Dufresne
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-14Refs #4444 -- Added tests for handling broken pipe errors in WSGIServer.Petter Strandmark
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-14Relaxed MemSize test for CockroachDB.Tim Graham
2020-12-14Removed redundant sentence in 'check' management command docs.Adam Johnson
2020-12-11Corrected docs regarding attributes required for logging in to the admin.Jan Pieter Waagmeester
Regression in 939dcff24f8e97d114595b102fb12348da482135.
2020-12-11Refs #32178 -- Fixed test_mark_expected_failures_and_skips_call teardown.Tim Graham
Test isolation failure observed on CockroachDB and PostgreSQL.
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-10Refs #31792 -- Updated SQL example in Exists() docs.Kevin Marsh
Follow up to 51297a92324976a704279b567ec4f80bb92d7b60.
2020-12-10Fixed isolation of test_runner.EmptyDefaultDatabaseTest.Mariusz Felisiak
This fixes test_runner.test_debug_sql.TestDebugSQL. test_setupclass_exception when run in reverse.
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