Changes between Version 11 and Version 12 of QuerysetRefactorBranch


Ignore:
Timestamp:
Apr 13, 2008, 6:10:55 AM (17 years ago)
Author:
Malcolm Tredinnick
Comment:

Clarified the use of extra(order_by=...).

Legend:

Unmodified
Added
Removed
Modified
  • QuerysetRefactorBranch

    v11 v12  
    11= The queryset-refactor branch =
    2 
    3 (Up to date as of 22 March, 2008)
    42
    53This branch contains a major refactoring of the {{{django.db.models.query.QuerySet}}} class to fix a group of SQL problems and make SQL generation easier for database backends requiring customization.
     
    5452qs.extra(select={'a': ...}, order_by=('a',))   # New style
    5553   }}}
     54   This only applies to ordering by items in an `extra(select={...})` dictionary. Normal ordering is still done with the `order_by()` method to querysets, there have been no changes there. So this change will affect relatively few people.
    5655 * Still on {{{extra(select=...)}}}... if you want to substitute parameters into these extra selection columns, use the {{{select_params}}} argument to {{{extra()}}}. The {{{params}}} argument is only applied to the extra where conditions.
    5756 * {{{select_related(False)}}} is no longer possible. Don't worry. You didn't know this existed, so you won't miss it. It was never part of the official API.
Back to Top