[Django] #17752: Serialization and multi-table inheritance

8 views
Skip to first unread message

Django

unread,
Feb 23, 2012, 4:55:28 AM2/23/12
to django-...@googlegroups.com
#17752: Serialization and multi-table inheritance
-------------------------------+--------------------
Reporter: issarisc@… | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.3
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
The section on serializing models using multi-table inheritance is rather
unhelpful IMHO. The solution the example suggests is of very limited use:
They only show how to query all parent Model objects and all child Model
objects and concatenate these lists.

In practice, I think it would be rather unlikely that anyone would want to
use it like this, as the results of both queries are not connected in any
way.

A more likely use-case would be if someone was querying the Restaurant
Model, and would want to show the name of the restaurant for each of the
results in the resulting QuerySet.

The documentation gives no solution or hint in the right direction
regarding this, so I assume the only way would be to create a new list
myself with the combined results and serializing that list.

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

Django

unread,
Mar 4, 2012, 3:58:30 AM3/4/12
to django-...@googlegroups.com
#17752: Serialization and multi-table inheritance
-------------------------------------+-------------------------------------
Reporter: issarisc@… | Owner: nobody
Type: | Status: new
Cleanup/optimization | Version: 1.3
Component: Documentation | Resolution:
Severity: Normal | Triage Stage:
Keywords: | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by aaugustin):

* needs_better_patch: => 0
* type: Uncategorized => Cleanup/optimization
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/17752#comment:1>

Django

unread,
Mar 4, 2012, 8:37:57 AM3/4/12
to django-...@googlegroups.com
#17752: Serialization and multi-table inheritance
--------------------------------------+------------------------------------
Reporter: issarisc@… | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.3
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by aaugustin):

* stage: Unreviewed => Accepted


Comment:

I'm not sure of what the best practice is, but it seems there's room for
improving the docs. Accepting on this basis.

--
Ticket URL: <https://code.djangoproject.com/ticket/17752#comment:2>

Django

unread,
Aug 28, 2025, 9:26:15 AM (10 days ago) Aug 28
to django-...@googlegroups.com
#17752: Serialization and multi-table inheritance
-------------------------------------+-------------------------------------
Reporter: issarisc@… | Owner: Saksham
Type: | Jain
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.3
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Saksham Jain):

* owner: nobody => Saksham Jain
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/17752#comment:3>

Django

unread,
Sep 4, 2025, 3:40:47 PM (3 days ago) Sep 4
to django-...@googlegroups.com
#17752: Serialization and multi-table inheritance
-------------------------------------+-------------------------------------
Reporter: issarisc@… | Owner: Saksham
Type: | Jain
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.3
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Clifford Gama):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/17752#comment:4>
Reply all
Reply to author
Forward
0 new messages