diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2014-01-22 22:17:32 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-01-22 23:26:05 +0100 |
| commit | 126af8fa7bbb711775c3859786955ccb8f3946fb (patch) | |
| tree | bffc88b14eb80bb36bc413553dacc6a30aff6e81 /docs/ref/forms/widgets.txt | |
| parent | ebed0149505c9689650442ddc4e9a3efbf3579be (diff) | |
[1.5.x] Don't show `self` in the list of arguments of a method.
This is consistent with Python's official documentation
and it's a sphinx recommendation too[1].
[1] http://sphinx-doc.org/markup/desc.html#dir-method
Refs #21855.
Backport of 79e1d6ebd70898d514a44b85648e3d24104c4243 from master.
Diffstat (limited to 'docs/ref/forms/widgets.txt')
| -rw-r--r-- | docs/ref/forms/widgets.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 13d2fd5b99..3cc24700d4 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -216,7 +216,7 @@ foundation for custom widgets. The 'value' given is not guaranteed to be valid input, therefore subclass implementations should program defensively. - .. method:: value_from_datadict(self, data, files, name) + .. method:: value_from_datadict(data, files, name) Given a dictionary of data and this widget's name, returns the value of this widget. Returns ``None`` if a value wasn't provided. |
