diff --git a/docs/ref/models/meta.txt b/docs/ref/models/meta.txt index 9e4d9435a8..982db0fc4f 100644 --- a/docs/ref/models/meta.txt +++ b/docs/ref/models/meta.txt @@ -238,7 +238,8 @@ can be made to convert your code to the new API: [ f for f in MyModel._meta.get_fields() - if (f.one_to_many or f.one_to_one) and f.auto_created + if (f.one_to_many or f.one_to_one) + and f.auto_created and not f.concrete ] * ``MyModel._meta.get_all_related_objects_with_model()`` becomes:: @@ -246,7 +247,8 @@ 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 or f.one_to_one) and f.auto_created + if (f.one_to_many or f.one_to_one) + and f.auto_created and not f.concrete ] * ``MyModel._meta.get_all_related_many_to_many_objects()`` becomes::