From 42186307bc1a7329c69be3cf7a5acd2cf687f33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 5 Feb 2013 19:19:22 +0100 Subject: [PATCH] Fix documentation about unsupported names keyword on instance method getter issue2987 review663002 --- doc/ref/models/fields.rst | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/doc/ref/models/fields.rst b/doc/ref/models/fields.rst index b1f1c03aa0..680263aa08 100644 --- a/doc/ref/models/fields.rst +++ b/doc/ref/models/fields.rst @@ -590,12 +590,6 @@ A function field can emulate any other given `field`. where `name` is the name of the field, and it must return a dictionary with a value for each instance. - The signature of the instancemethod is:: - - getter(name) - - where `name` is the name of the field, and it must return the value. - Or the signature of the classmethod is:: getter(instances, names) @@ -603,12 +597,11 @@ A function field can emulate any other given `field`. where `names` is a list of name fields, and it must return a dictionary containing for each names a dictionary with a value for each instance. - the signature of the instancemethod is:: + The signature of the instancemethod is:: - getter(names) + getter(name) - where `names` is a list of name fields, and it must return a dictionary - containing for each names the value. + where `name` is the name of the field, and it must return the value. :class:`Function` has some extra optional arguments: