Changes between Initial Version and Version 1 of Ticket #27414, comment 3


Ignore:
Timestamp:
Nov 3, 2016, 11:09:36 PM (8 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27414, comment 3

    initial v1  
    11(I lost the original comment I wrote here so here's a condensed version).
    22
    3 Using a ForeignKey as the output_field is an interesting idea that I hadn't considered, and would solve any backward compatibility issues. I don't know what the difficulty would be, but F fields already have access to the query to add necessary joins. I doubt foreign key fields are added to joins right yet, but __underscore relationships do add joins to the query. The next hard thing would be reconstructing the object.
     3Using a ForeignKey as the output_field is an interesting idea that I hadn't considered, and would solve any backward compatibility issues. I don't know what the difficulty would be, but F fields already have access to the query to add necessary joins. I doubt foreign key fields are added to joins right yet, but `__underscore` relationships do add joins to the query. The next hard thing would be reconstructing the object.
    44
    55All of this sounds doable though.
Back to Top