#19385: Add support for multiple-column join
-------------------------------------+-------------------------------------
     Reporter:  cseibert             |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  1.4
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:  join                 |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by Alex):

 I think Anssii, is correct that the right solution is to support "virtual
 fields" (and with the multi column primary keys), and have that work with
 foreign keys. However, there could be an argument made that ForeignKey
 needs some support of its own, specifically with the `to_field` otpion,
 which lets you point a foreign key at something besides a primary key,
 it's not unreasonable to say that `to_field` should accept a list of
 fields. I suspect however that doing this correctly would still require
 most of the work of #373, so it should happen afterwards.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19385#comment:4>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to