#27332: Specifying additional ON arguments, and more flexibility with joins
-------------------------------------+-------------------------------------
     Reporter:  MikiSoft             |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:
  (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
-------------------------------------+-------------------------------------

Comment (by Anssi Kääriäinen):

 This is something I've wanted for a long time.

 Some considerations:
   - In general the ORM API tries to avoid SQL specific terms like join.
 Maybe relation would be a better term to use?
   - The API shouldn't edit the current relation, instead it should add a
 new lookup path alias. So: .filtered_relation('translations',
 alias='translation_fi',
 condition=Q(translations__lang='fi')).filter(translation_fi__title=...)

--
Ticket URL: <https://code.djangoproject.com/ticket/27332#comment:12>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.48f927c84e4ef810bb5a77b511650f4d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to