Skip to content

Commit

Permalink
Fixed docs to return the bundle in hydrate_FOO.
Browse files Browse the repository at this point in the history
  • Loading branch information
dericcrago authored and toastdriven committed Feb 3, 2012
1 parent 5c7ef3c commit f992a0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,10 @@ A simple example::
queryset = Note.objects.all()

def hydrate_title(self, bundle):
return bundle.data['title'].lower()
bundle.data['title'] = bundle.data['title'].lower()
return bundle

The return value is updated in the ``bundle.obj``.
The return value is the ``bundle``.

Per-field ``hydrate``
~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit f992a0d

Please sign in to comment.