https://code.djangoproject.com/ticket/19385
Then I have realized that I can use `ForeignObject` for custom joins.
Almost all of the solutions online suggest using raw SQLs with
`Manager.raw()` or `QuerySet.extra()`, none of them mention about
`ForeignObject`. I don't know if it was on purpose or not but I thought
that it might be good to mention about the `ForeignObject` in the
following section:
https://docs.djangoproject.com/en/4.1/ref/models/relations/
What do you think?
--
Ticket URL: <https://code.djangoproject.com/ticket/34122>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => wontfix
Comment:
ForeignObject isn't documented because it isn't earmarked for public use.
That being said there's some external documentation on it in a few places
to implement custom joins, one good one here:
https://devblog.kogan.com/blog/custom-relationships-in-django
Closing as won'tfix. If you'd like to raise this topic making
ForeignObject public please free to start a discussion on the
DevelopersMailingList.
--
Ticket URL: <https://code.djangoproject.com/ticket/34122#comment:1>
Comment (by Ömer Faruk Abacı):
I see your point, thank you!
--
Ticket URL: <https://code.djangoproject.com/ticket/34122#comment:2>
* cc: Simon Charette (added)
Comment:
Simon had a proposal in his DjangoCon US 2020 keynote about documenting
some of the internals in a way that would help people learn the ORM, but
not make them public and so commit to API stability. I don't know how that
would role out, or if this would fall under it specifically, but it seems
related.
--
Ticket URL: <https://code.djangoproject.com/ticket/34122#comment:3>
Comment (by Mariusz Felisiak):
Replying to [comment:3 Carlton Gibson]:
> Simon had a proposal in his DjangoCon US 2020 keynote about documenting
some of the internals in a way that would help people learn the ORM, but
not make them public and so commit to API stability. I don't know how that
would role out, or if this would fall under it specifically, but it seems
related.
We have a ticket for this :), see #27617.
--
Ticket URL: <https://code.djangoproject.com/ticket/34122#comment:4>
Comment (by Carlton Gibson):
Of course we do :D
--
Ticket URL: <https://code.djangoproject.com/ticket/34122#comment:5>