#30574: Support join tables query over two tables without foreign key.
-------------------------------------+-------------------------------------
Reporter: sazima | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: orm | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* status: new => closed
* resolution: => invalid
* version: 2.2 => master
* component: Uncategorized => Database layer (models, ORM)
Comment:
Thanks for the report. I'm not completely sure what do you want to achieve
but I assumed that you have `ManyToManyField` between `User` and `Role`
and you want to select all roles used by users, for that you can use e.g.
`Role.objects.values(...other columns..., 'user')`.
Please use one of
[https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
support channels].
--
Ticket URL: <https://code.djangoproject.com/ticket/30574#comment:1>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.614fb61d69eea6edfbb51774a3471bd2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.