#13781: select_related and multiple inheritance -------------------------------------+------------------------------------- Reporter: shauncutts | Owner: nobody Type: Bug | Status: reopened Component: Database layer | Version: 1.2 (models, ORM) | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: | Needs documentation: 0 Has patch: 1 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 1 | -------------------------------------+------------------------------------- Changes (by ungenio):
* has_patch: 0 => 1 * easy: 0 => 1 Comment: I've attached a patch that resolves the issue. Included are updated tests that check for the following: Child1 is a subclass of both Parent1 and Parent2; Parent1.objects.select_related('child1') should not throw an error (see traceback in comment:10). Child2 is a subclass of Parent1 and has a OneToOneField to Parent2; doing Parent2.objects.select_related('child2') should not throw an error (same traceback). -- Ticket URL: <https://code.djangoproject.com/ticket/13781#comment:11> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.