#18174: Model inheritance pointers doesn't refer to parent to refer to
grandparents
-------------------------------------+-------------------------------------
Reporter: phowe | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 1.4
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Baptiste Mispelon):
* status: new => closed
* resolution: => fixed
Comment:
I believe this god fixed but it's hard to pinpoint exactly what commit did
it.
Using the provided testcase from comment:6, I was able to bisect but it
seems that the issue got fixed in two separate steps. Here's a rough
timeline:
0) (this issue is reported). Django is at 1.4 and the testcase fails with
something like `AssertionError: u'appname_top' != 'appname_middle'`.
1) Enters commit 68985db48212c701a3d975636123a5d79bdc006f (part of the 1.6
release which changes the error: `OperationalError: no such column:
appname_middle.b2_id`
2) Finally with commit 38e24d680d28b92997def9ab46a961d09bb81dce (1.7
release), the testcase passes.
The test added with 38e24d680d28b92997def9ab46a961d09bb81dce is not
exactly the same as the one attached to this ticket but I'm pretty
confident that they're similar enough:
* Both involve a 3-step inheritance chain with multiple inheritance in the
middle model.
* Both test raise the same error prior to the fix (`OperationalError: no
such column: appname_middle.b2_id`)
Therefore I think this ticket can be marked as fixed.
--
Ticket URL: <https://code.djangoproject.com/ticket/18174#comment:14>
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/063.47e3a4907b4f01b150d911ae816bd7e1%40djangoproject.com.