[FIX] translate docstrings

rst literals are double-quoted
This commit is contained in:
Xavier Morel
2015-09-16 10:02:37 +02:00
parent 2a4784431c
commit 1e2e38b96a
+8 -6
View File
@@ -1181,9 +1181,10 @@ class Char(_String):
:param int size: the maximum size of values stored for that field
:param translate: enable the translation of the field's values; use
`translate=True` to translate field values as a whole; `translate` may
also be a callable such that `translate(callback, value)` translates
`value` by using `callback(term)` to retrieve the translation of terms.
``translate=True`` to translate field values as a whole; ``translate``
may also be a callable such that ``translate(callback, value)``
translates ``value`` by using ``callback(term)`` to retrieve the
translation of terms.
"""
type = 'char'
_slots = {
@@ -1209,9 +1210,10 @@ class Text(_String):
have a size and usually displayed as a multiline text box.
:param translate: enable the translation of the field's values; use
`translate=True` to translate field values as a whole; `translate` may
also be a callable such that `translate(callback, value)` translates
`value` by using `callback(term)` to retrieve the translation of terms.
``translate=True`` to translate field values as a whole; ``translate``
may also be a callable such that ``translate(callback, value)``
translates ``value`` by using ``callback(term)`` to retrieve the
translation of terms.
"""
type = 'text'