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:30:07 -0500
commit341a20ff6c4daee3048a4c4c8fb0e8becf2a540f (patch)
tree0e75ef8b464229df62639c61ae5adf3c8934e88e /docs
parent39a8640e3045d7920a87d3456d3eb51736658619 (diff)
[1.7.x] Updated recommendation for testing keyword arg in custom fields.
Backport of dbabf43920bfd99f0e720c7c20228c17128a2af8 from master
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/topics/migrations.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt
index 308ed3f703..c6eec5e31d 100755
--- a/docs/topics/migrations.txt
+++ b/docs/topics/migrations.txt
@@ -284,7 +284,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.
Adding migrations to apps
-------------------------