summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2020-06-22Fixed #31728 -- Fixed cache culling when no key is found for deletion.Guillermo Bonvehí
DatabaseCache._cull implementation could fail if no key was found to perform a deletion in the table. This prevented the new cache key/value from being correctly added.
2020-06-18Refs #31670 -- Renamed whitelist argument and attribute of EmailValidator.David Smith
2020-06-17Fixed #30583 -- Fixed handling JSONFields in XML serializer.Hasan Ramezani
Co-authored-by: Chason Chaffin <chason@gmail.com>
2020-06-17Refs #30190 -- Minor edits to JSONL serializer.Mariusz Felisiak
Follow up to e29637681be07606674cdccb47d1e53acb930f5b.
2020-06-16Fixed #30190 -- Added JSONL serializer.Ali Vakilzade
2020-06-12Fixed #31645 -- Enhanced the migration warning for migrate commmand.Chinmoy Chakraborty
Added the list of apps with changes not reflected in migrations.
2020-06-08Fixed #31661 -- Removed period in makemigrations history check warning.davidchorpash
2020-06-05Fixed #31654 -- Fixed cache key validation messages.Mariusz Felisiak
2020-06-04Refs #5086 -- Removed unused only_django argument from sql_flush().Jon Dufresne
Unused (always True) since its introduction in 132605d889db8767a40243259066b8450428714c.
2020-06-04Refs #31630 -- Removed DatabaseFeatures.can_introspect_autofield.Tim Graham
2020-06-03Preferred usage of among/while to amongst/whilst.David Smith
2020-06-03Fixed CVE-2020-13254 -- Enforced cache key validation in memcached backends.Dan Palmer
2020-06-01Reverted "Refs #23919 -- Removed obsolete __init__.py files in management ↵René Fleschenberg
command directories." This reverts commit ccc25bfe4f0964a00df3af6f91c2d9e20159a0c2. https://groups.google.com/d/topic/django-developers/GVHMH2ciAnk/discussion
2020-05-28Refs #31040, Refs #31224 -- Prevented cycles in exceptions chain.Mariusz Felisiak
Async exception handling was raising an exception that was creating a cycle in the exception chain (by re-raising an exception in sync_to_async that was already being handled). Thanks Chris Jerdonek for detailed analysis.
2020-05-25Fixed #29078 -- Made serializers respect prefetch_related() for m2m fields.Claude Paroz
2020-05-21Fixed #31546 -- Allowed specifying list of tags in ↵Hasan Ramezani
Command.requires_system_checks.
2020-05-19Fixed #31504 -- Allowed calling makemigrations without an active database ↵wtkm11
connection.
2020-05-15Fixed #31552 -- Added support for LZMA and XZ fixtures to loaddata.Paolo Melchiorre
2020-05-13Updated logging calls to use arguments instead of string interpolation.François Freitag
2020-05-12Fixed E128, E741 flake8 warnings.Mariusz Felisiak
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-05-08Fixed #31548 -- Fixed URLValidator crash on non-strings.Yash Saini
2020-05-08Refs #27661 -- Added Tags.staticfiles.Mariusz Felisiak
Follow up to 0ec4dc91e0e7befdd06aa0613b5d0fbe3c785ee7.
2020-05-06Fixed #31515 -- Made ASGIHandler dispatch lifecycle signals with thread ↵Carlton Gibson
sensitive.
2020-05-04Changed `'%s' % value` pattern to `str(value)`.Nick Pope
2020-04-30Doc'd send_email() behavior when from_email is None.Adrian D'Alessandro
2020-04-28Fixed #29249 -- Made JSON and YAML serializers use Unicode by default.Hasan Ramezani
2020-04-28Merge stdout.write() calls in squashmigrations.François Freitag
2020-04-27Refs #18325 -- Removed unnecessary line endings in management commands.François Freitag
The OutputWrapper automatically adds \n when it’s not present.
2020-04-27Removed unnecessary tuple wrapping of single format string argument.François Freitag
2020-04-21Refs #29983 -- Fixed displaying pathlib.Path database name in flush ↵Mariusz Felisiak
command's inputs.
2020-04-20Capitalized Unicode in docs, strings, and comments.Jon Dufresne
2020-04-20Fixed #31477 -- Removed "using" argument from ↵Jon Dufresne
DatabaseOperations.execute_sql_flush().
2020-04-17Fixed #31473 -- Made sql_flush() use RESTART IDENTITY to reset sequences on ↵Jon Dufresne
PostgreSQL. The sql_flush() positional argument sequences is replaced by the boolean keyword-only argument reset_sequences. This ensures that the old function signature can't be used by mistake when upgrading Django. When the new argument is True, the sequences of the truncated tables will reset. Using a single boolean value, rather than a list, allows making a binary yes/no choice as to whether to reset all sequences rather than a working on a completely different set.
2020-04-15Refs #27468 -- Changed default Signer algorithm to SHA-256.Claude Paroz
2020-04-14Fixed #29501 -- Allowed dbshell to pass options to underlying tool.Adam Johnson
2020-04-14Refs #29501 -- Allowed customizing exit status for management commands.Adam Johnson
2020-04-14Refs #29501 -- Simplified BaseCommand.run_from_argv() a bit.Adam Johnson
2020-04-14Refs #29501 -- Made dbshell catch more specific FileNotFoundError.Adam Johnson
2020-04-07Refs #31051 -- Made dumpdata do not sort dependencies if natural foreign ↵Matthijs Kooijman
keys are not used. There is no need to sort dependencies when natural foreign keys are not used.
2020-04-07Fixed #31051 -- Allowed dumpdata to handle circular references in natural keys.Matthijs Kooijman
Since #26291 forward references in natural keys are properly handled by loaddata, so sorting depenencies in dumpdata doesn't need to break on cycles. This patch allows circular references in natural keys by breaking sort_depenencies() on loops.
2020-04-07Fixed #31428 -- Allowed empty message in management command self.stdout/err ↵François Freitag
proxies.
2020-04-01Fixed #31380 -- Added deployment system check for DJANGO_ALLOW_ASYNC_UNSAFE ↵hashlash
environment variable.
2020-03-26Fixed #31402 -- Added migrate --check option.Gordon Pendleton
Command exits with non-zero status if unapplied migrations exist.
2020-03-18Fixed #31224 -- Added support for asynchronous views and middleware.Andrew Godwin
This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client.
2020-03-09Fixed #31318 -- Allowed sqlmigrate to inspect squashed migrations.David Wobrock
2020-03-09Refs #31318 -- Optimized sqlmigrate by using MigrationLoader.David Wobrock
Only loader from MigrationExecutor was used.
2020-03-09Refs #31318 -- Moved MigrationExecutor.collect_sql() to MigrationLoader.David Wobrock
collect_sql() is used only in sqlmigrate.
2020-03-06Optimized a bit handle() of sqlmigrate management command.David Wobrock
2020-03-05Fixed #31327 -- Deprecated providing_args argument for Signal.Jon Dufresne