summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndrei Kulakov <andrei.avk@gmail.com>2015-01-29 16:57:03 -0500
committerTim Graham <timograham@gmail.com>2015-01-30 08:29:17 -0500
commitdbabf43920bfd99f0e720c7c20228c17128a2af8 (patch)
tree0bd7d3163b5f3f7696639620935aff61febffbc7 /docs
parent29c0073335c7f7cdc482866e093e5e42a42625e5 (diff)
Updated recommendation for testing keyword arg in custom fields.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/migrations.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt
index 31d26cb8d7..179dae823f 100644
--- a/docs/topics/migrations.txt
+++ b/docs/topics/migrations.txt
@@ -247,7 +247,7 @@ You can't modify the number of positional arguments in an already migrated
custom field without raising a ``TypeError``. The old migration will call the
modified ``__init__`` method with the old signature. So if you need a new
argument, please create a keyword argument and add something like
-``assert kwargs.get('argument_name') is not None`` in the constructor.
+``assert 'argument_name' in kwargs`` in the constructor.
.. _using-managers-in-migrations: