summaryrefslogtreecommitdiff
path: root/docs/db-api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/db-api.txt')
-rw-r--r--docs/db-api.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt
index 91ce2e8ac2..8a85c4ebdd 100644
--- a/docs/db-api.txt
+++ b/docs/db-api.txt
@@ -333,8 +333,7 @@ Creating new objects
Creating new objects (i.e. ``INSERT``) is done by creating new instances
of objects then calling save() on them::
- >>> p = polls.Poll(id=None,
- ... slug="eggs",
+ >>> p = polls.Poll(slug="eggs",
... question="How do you like your eggs?",
... pub_date=datetime.datetime.now(),
... expire_date=some_future_date)
@@ -355,8 +354,7 @@ Related objects (i.e. ``Choices``) are created using convience functions::
Each of those ``add_choice`` methods is equivilent to (except obviously much
simpler than)::
- >>> c = polls.Choice(id=None,
- ... poll_id=p.id,
+ >>> c = polls.Choice(poll_id=p.id,
... choice="Over easy",
... votes=0)
>>> c.save()