diff options
| author | Neal Todd <neal.todd@torchbox.com> | 2015-04-20 13:06:35 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-04-20 09:50:31 -0400 |
| commit | b39c970cfedb9fb0e672a943c3ad7393f84a842f (patch) | |
| tree | bae7976af6f0a1808e47275d44dce6cb9474f794 /docs/ref | |
| parent | b8f203b3f27b1dc02ad84b616092bcf03337fc51 (diff) | |
[1.8.x] Amended get_all_related_objects() backwards compatible replacement.
Backport of d84f01ff08922c70f9bb0861846c8ace0764b2dc from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/meta.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/meta.txt b/docs/ref/models/meta.txt index ec088e64fa..d972e9b5eb 100644 --- a/docs/ref/models/meta.txt +++ b/docs/ref/models/meta.txt @@ -240,7 +240,7 @@ can be made to convert your code to the new API: [ f for f in MyModel._meta.get_fields() - if f.one_to_many and f.auto_created + if (f.one_to_many or f.one_to_one) and f.auto_created ] * ``MyModel._meta.get_all_related_objects_with_model()``:: @@ -248,7 +248,7 @@ can be made to convert your code to the new API: [ (f, f.model if f.model != MyModel else None) for f in MyModel._meta.get_fields() - if f.one_to_many and f.auto_created + if (f.one_to_many or f.one_to_one) and f.auto_created ] * ``MyModel._meta.get_all_related_many_to_many_objects()``:: |
