Changes between Initial Version and Version 1 of Ticket #27414, comment 3
- Timestamp:
- Nov 3, 2016, 11:09:36 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27414, comment 3
initial v1 1 1 (I lost the original comment I wrote here so here's a condensed version). 2 2 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 __underscorerelationships do add joins to the query. The next hard thing would be reconstructing the object.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. 4 4 5 5 All of this sounds doable though.