Changes between Version 11 and Version 12 of QuerysetRefactorBranch
- Timestamp:
- Apr 13, 2008, 6:10:55 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QuerysetRefactorBranch
v11 v12 1 1 = The queryset-refactor branch = 2 3 (Up to date as of 22 March, 2008)4 2 5 3 This 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. … … 54 52 qs.extra(select={'a': ...}, order_by=('a',)) # New style 55 53 }}} 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. 56 55 * 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. 57 56 * {{{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.