--
Ticket URL: <https://code.djangoproject.com/ticket/24020>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by akaariai):
The implementation in pull request 3669 will also change the way
select_related is handled in the ORM. This should fix at least tickets
#21204 and #23270. There are likely other older tickets which should be
fixed, too.
--
Ticket URL: <https://code.djangoproject.com/ticket/24020#comment:1>
Comment (by Carl Meyer <carl@…>):
In [changeset:"4a2a433e7daca1e1797b7b34d30d49ad4e09791c"]:
{{{
#!CommitTicketReference repository=""
revision="4a2a433e7daca1e1797b7b34d30d49ad4e09791c"
Refs #24020 -- return expressions from get_group_by_cols()
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24020#comment:2>
* keywords: => 1.8-alpha
* owner: nobody => akaariai
* status: new => assigned
Comment:
I'd like to get this into 1.8. I don't think there is that much to do any
more.
--
Ticket URL: <https://code.djangoproject.com/ticket/24020#comment:3>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/24020#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"0c7633178fa9410f102e4708cef979b873bccb76"]:
{{{
#!CommitTicketReference repository=""
revision="0c7633178fa9410f102e4708cef979b873bccb76"
Fixed #24020 -- Refactored SQL compiler to use expressions
Refactored compiler SELECT, GROUP BY and ORDER BY generation.
While there, also refactored select_related() implementation
(get_cached_row() and get_klass_info() are now gone!).
Made get_db_converters() method work on expressions instead of
internal_type. This allows the backend converters to target
specific expressions if need be.
Added query.context, this can be used to set per-query state.
Also changed the signature of database converters. They now accept
context as an argument.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24020#comment:5>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"0a3c6fe6b2c43b0bb90cb9df3840dcb70edc22a1" 0a3c6fe6]:
{{{
#!CommitTicketReference repository=""
revision="0a3c6fe6b2c43b0bb90cb9df3840dcb70edc22a1"
Refs #24020 -- Removed redundant Query.get_loaded_field_names().
get_loaded_field_names() is no longer called in multiple places
(see 0c7633178fa9410f102e4708cef979b873bccb76) and it's redundant
with SQLCompiler.deferred_to_columns().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24020#comment:6>