Skip to content

Commit

Permalink
Merge pull request #20 from clarkduvall/update-docs
Browse files Browse the repository at this point in the history
Add docs for label param
  • Loading branch information
clarkduvall committed Apr 12, 2016
2 parents a663ba4 + 42816eb commit 7e86578
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions serpy/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Field(object):
field was assigned to on the serializer will be used.
:param bool call: Whether the value should be called after it is retrieved
from the object. Useful if an object has a method to be serialized.
:param str label: A label to use as the name of the serialized field
instead of using the attribute name of the field.
:param bool required: Whether the field is required. If set to ``False``,
:meth:`Field.to_value` will not be called if the value is ``None``.
"""
Expand Down

0 comments on commit 7e86578

Please sign in to comment.