diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-11 20:24:45 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-11 20:24:45 +0000 |
| commit | d442731eb2af671d93550426cf061713a50468d2 (patch) | |
| tree | 6d2242897331a0037764a9b44349b1922e6772d0 /docs/db-api.txt | |
| parent | d79cfec906daf449c0fa22bb9a8d3dd205567fde (diff) | |
i18n: merged r815:r843 from trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/db-api.txt')
| -rw-r--r-- | docs/db-api.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt index 8a02437aaa..b80d4e8647 100644 --- a/docs/db-api.txt +++ b/docs/db-api.txt @@ -449,8 +449,7 @@ Related objects (e.g. ``Choices``) are created using convenience functions:: >>> p.get_choice_count() 4 -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(poll_id=p.id, choice="Over easy", votes=0) >>> c.save() @@ -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 ================ |
