File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Renaming Attributes
54
54
-------------------
55
55
56
56
Often times your public facing field name is different from your internal
57
- attribute naming. To configure this mapping, use the ``attribute `` kwarg. ::
57
+ attribute naming. To configure this mapping, use the ``attribute `` kwarg. ::
58
58
59
59
fields = {
60
60
'name': fields.String(attribute='private_name'),
Original file line number Diff line number Diff line change @@ -176,6 +176,15 @@ def format(self, value):
176
176
177
177
178
178
class Integer (Raw ):
179
+ """ Field for outputting an integer value.
180
+
181
+ :param int default: The default value for the field, if no value is
182
+ specified.
183
+
184
+ :param attribute: If the public facing value differs from the internal
185
+ value, use this to retrieve a different attribute from the response
186
+ than the publicly named value.
187
+ """
179
188
def __init__ (self , default = 0 , attribute = None ):
180
189
super (Integer , self ).__init__ (default , attribute )
181
190
You can’t perform that action at this time.
0 commit comments