Browse files

Improved docs/db-api.txt to say add_FOO() methods always return the n…

…ewly-created object.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 705a2c3 commit eb4f16e666ae3d7c29b5bcae737ce755d5003a26 @adrianholovaty adrianholovaty committed Oct 10, 2005
Showing with 3 additions and 2 deletions.
  1. +3 −2 docs/db-api.txt
@@ -449,8 +449,7 @@ Related objects (e.g. ``Choices``) are created using convenience functions::
>>> p.get_choice_count()
-Each of those ``add_choice`` methods is equivalent to (except obviously much
-simpler than)::
+Each of those ``add_choice`` methods is equivalent to (but much simpler than)::
>>> c = polls.Choice(, choice="Over easy", votes=0)
@@ -459,6 +458,8 @@ Note that when using the `add_foo()`` methods, you do not give any value
for the ``id`` field, nor do you give a value for the field that stores
the relation (``poll_id`` in this case).
+The ``add_FOO()`` method always returns the newly created object.
Deleting objects

0 comments on commit eb4f16e

Please sign in to comment.