From 225d96533a8e05debd402a2bfe566487cc27d95f Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Wed, 9 Jun 2021 16:55:22 +0200 Subject: Fixed #30427, Fixed #16176 -- Corrected setting descriptor in Field.contribute_to_class(). Co-authored-by: Jarek Glowacki --- docs/topics/db/models.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index 26a6d7dc58..1c4e99817f 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -1457,6 +1457,13 @@ different database tables). Django will raise a :exc:`~django.core.exceptions.FieldError` if you override any model field in any ancestor model. +Note that because of the way fields are resolved during class definition, model +fields inherited from multiple abstract parent models are resolved in a strict +depth-first order. This contrasts with standard Python MRO, which is resolved +breadth-first in cases of diamond shaped inheritance. This difference only +affects complex model hierarchies, which (as per the advice above) you should +try to avoid. + Organizing models in a package ============================== -- cgit v1.3