diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-09-15 21:15:56 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-09-15 21:15:56 +0000 |
| commit | a882e6076b24dc420ed9b19cb7c8bb1f8720655c (patch) | |
| tree | fd9d20772b559f8024bc516ff58e9d69d77833d3 /docs | |
| parent | ff3f6df54c40aa76c2ef23d54d7f4b3c462538cf (diff) | |
queryset-refactor: Merged to [6130]
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/db-api.txt | 2 | ||||
| -rw-r--r-- | docs/newforms.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt index d1646ba6ea..f5da56ddf9 100644 --- a/docs/db-api.txt +++ b/docs/db-api.txt @@ -481,7 +481,7 @@ In SQL terms, that evaluates to:: WHERE NOT (pub_date > '2005-1-3' AND headline = 'Hello') This example excludes all entries whose ``pub_date`` is later than 2005-1-3 -AND whose headline is NOT "Hello":: +OR whose headline is "Hello":: Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello') diff --git a/docs/newforms.txt b/docs/newforms.txt index 36c627b398..32c4441eb2 100644 --- a/docs/newforms.txt +++ b/docs/newforms.txt @@ -1887,7 +1887,7 @@ field on the model, you could define the callback:: ... else: ... return field.formfield(**kwargs) - >>> ArticleForm = form_for_model(formfield_callback=my_callback) + >>> ArticleForm = form_for_model(Article, formfield_callback=my_callback) Note that your callback needs to handle *all* possible model field types, not just the ones that you want to behave differently to the default. That's why |
