[Django] #31677: ForeignObjectRel and its subclasses shouldn't be set as Col.output_field.

11 views
Skip to first unread message

Django

unread,
Jun 8, 2020, 1:19:44 AM6/8/20
to django-...@googlegroups.com
#31677: ForeignObjectRel and its subclasses shouldn't be set as Col.output_field.
-------------------------------------+-------------------------------------
Reporter: felixxm | Owner: Simon Charette
Type: | Status: assigned
Cleanup/optimization |
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
`ForeignObjectRel` and its subclasses (e.g. `ManyToOneRel`) shouldn't be
set as `Col.output_field`. It can cause various issues, see #31660 and a
[https://github.com/django/django/pull/13025#pullrequestreview-425279818
short discussion].

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

Django

unread,
Nov 18, 2021, 4:02:48 AM11/18/21
to django-...@googlegroups.com
#31677: ForeignObjectRel and its subclasses shouldn't be set as Col.output_field.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: (none)
Type: | Status: new
Cleanup/optimization |
Component: Database layer | Version: dev
(models, ORM) |
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 Mariusz Felisiak):

* owner: Simon Charette => (none)
* status: assigned => new


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

Django

unread,
Feb 16, 2025, 1:26:10 PM2/16/25
to django-...@googlegroups.com
#31677: ForeignObjectRel and its subclasses shouldn't be set as Col.output_field.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Jacob1507
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: dev
(models, ORM) |
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 Jacob1507):

* owner: (none) => Jacob1507
* status: new => assigned

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