#11079: Multi-table inheritance subclasses cannot be proxied
-------------------------------------+-------------------------------------
Reporter: gsong | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 1.3
(models, ORM) | Resolution: fixed
Severity: Normal | Triage Stage: Accepted
Keywords: model proxy multi- | Needs documentation: 0
table inheritance | Patch needs improvement: 0
Has patch: 0 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by charettes):
* status: new => closed
* version: SVN => 1.3
* resolution: => fixed
Comment:
Cannot reproduce on django 1.4
{{{
>>> import django
>>> django.VERSION
(1, 4, 0, 'final', 0)
>>> from ticket_11079.models import Restaurant, PizzaJoint
>>> Restaurant.objects.create(name='Greasy Pizza', genre='pizza')
<Restaurant: Restaurant object>
>>> Restaurant.objects.all()
[<Restaurant: Restaurant object>]
>>> PizzaJoint.objects.all()
[<PizzaJoint: PizzaJoint object>]
}}}
django 1.3.1
{{{
>>> import django
>>> django.VERSION
(1, 3, 1, 'final', 0)
>>> from ticket_11079.models import Restaurant, PizzaJoint
>>> Restaurant.objects.create(name='Greasy Pizza', genre='pizza')
<Restaurant: Restaurant object>
>>> Restaurant.objects.all()
[<Restaurant: Restaurant object>]
>>> PizzaJoint.objects.all()
[<PizzaJoint: PizzaJoint object>]
}}}
And django 1.2.7
{{{
>>> import django
>>> django.VERSION
(1, 2, 7, 'final', 0)
>>> from ticket_11079.models import Restaurant, PizzaJoint
>>> Restaurant.objects.create(name='Greasy Pizza', genre='pizza')
<Restaurant: Restaurant object>
>>> Restaurant.objects.all()
[<Restaurant: Restaurant object>]
>>> PizzaJoint.objects.all()
[<PizzaJoint: PizzaJoint object>]
}}}
At the time this ticket was created (05/12/09)
[https://www.djangoproject.com/weblog/2009/may/ django 1.1 was about not
event released]. I cannot find which commit fixed this issue but since it
has been fixed in trunk for about 3 years I'm marking this ticket as
''fixed''.
--
Ticket URL: <https://code.djangoproject.com/ticket/11079#comment:6>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.