Permalink
Browse files

Update docs for transform function

  • Loading branch information...
1 parent 2106372 commit 2ad99e15021ad30d4429aa59dc60cb47f154b74d @anthony-tresontani committed Jun 27, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/index.rst
View
@@ -130,6 +130,10 @@ You can give, as argument, the following options:
`transform`
Apply the function before returning the result.
+ You can also define a function called transform_<attribute_name>.
+
+ def transform_username(self, username):
+ return username.capitalize()
`prepare`

0 comments on commit 2ad99e1

Please sign in to comment.