#31442: Inherited ManyToMany.all() empty with multiple inherited models of same
name from abstract one
-------------------------------------+-------------------------------------
               Reporter:  Gereon     |          Owner:  nobody
  Kremer                             |
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  3.0
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Please see #24156 first!

 The issue described there still persists if the derived model classes have
 the **same class name** (spread across different apps).
 I understand this to be a weird model design at least, but found it to be
 reasonable for my current project.

 I'd suggest to either use the fully qualified class name (i.e.
 `app.model_class` instead of `model_class`) to build the related_name, or
 at least note in the documentation that models with identical names can be
 a problem with inheritance.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31442>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.f4250aa1b41feea53d00198c4b43cee3%40djangoproject.com.

Reply via email to