summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2016-03-02 18:01:36 -0800
committerTim Graham <timograham@gmail.com>2016-03-05 13:19:29 -0500
commit1845bc1d1007751a7f65c66aeddc35f032f6bf41 (patch)
tree2f2ae8c2c60b7421e49cbbd40b42ce79fe852566 /docs
parent4115288b4f7bbd694946a1ddef0f0ba85c03f9a1 (diff)
Refs #26315 -- Cleaned up argparse options in commands.
* Removed type coercion. Options created by argparse are already coerced to the correct type. * Removed fallback default values. Options created by argparse already have a default value. * Used direct indexing. Options created by argparse are always set. This eliminates the need to use dict.get().
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.10.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt
index 0d1ea5b5d2..e19ecf5662 100644
--- a/docs/releases/1.10.txt
+++ b/docs/releases/1.10.txt
@@ -640,6 +640,14 @@ Miscellaneous
* Tests that violate deferrable database constraints will now error when run on
a database that supports deferrable constraints.
+* Built-in management commands now use indexing of keys in ``options``, e.g.
+ ``options['verbosity']``, instead of ``options.get()`` and no longer perform
+ any type coercion. This could be a problem if you're calling commands using
+ ``Command.execute()`` (which bypasses the argument parser that sets a default
+ value) instead of :func:`~django.core.management.call_command`. Instead of
+ calling ``Command.execute()``, pass the command object as the first argument
+ to ``call_command()``.
+
.. _deprecated-features-1.10:
Features deprecated in 1.10