summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-03-20 09:42:59 -0400
committerTim Graham <timograham@gmail.com>2017-03-21 10:38:15 -0400
commit2bd152b46f608933a8c4c6a3c2689781fc58f4fd (patch)
tree8f1e7dff96b13709e1642b7a56298ec0d9b1adb9 /docs
parent524f1e7051a36a633abef756d3284886f22c2340 (diff)
[1.11.x] Refs #27919 -- Changed Widget.get_context() attrs kwarg to an arg.
Backport of 075e93c16a82ba7869a0b2d572e99fdbd0724042 and 93d07701045c242f81396016ab4ae15ba63a55d9 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/forms/widgets.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index c17877545b..077d4617ad 100644
--- a/docs/ref/forms/widgets.txt
+++ b/docs/ref/forms/widgets.txt
@@ -241,7 +241,7 @@ foundation for custom widgets.
In older versions, this method is a private API named
``_format_value()``. The old name will work until Django 2.0.
- .. method:: get_context(name, value, attrs=None)
+ .. method:: get_context(name, value, attrs)
.. versionadded:: 1.11
@@ -386,7 +386,7 @@ foundation for custom widgets.
It provides some custom context:
- .. method:: get_context(name, value, attrs=None)
+ .. method:: get_context(name, value, attrs)
In addition to the ``'widget'`` key described in
:meth:`Widget.get_context`, ``MultiValueWidget`` adds a