Changes between Version 10 and Version 11 of QuerysetRefactorBranch


Ignore:
Timestamp:
Mar 21, 2008, 11:36:18 PM (17 years ago)
Author:
Malcolm Tredinnick
Comment:

Added a note about full support for &, | and ~ with Q classes.

Legend:

Unmodified
Added
Removed
Modified
  • QuerysetRefactorBranch

    v10 v11  
    3737 9. Filtering a queryset by checking if a field attribute is {{{None}}} is equivalent to testing if the corresponding database column is {{{NULL}}}. So {{{qs.filter(foo=None)}}} is now identical to {{{qs.filter(foo__isnull=True)}}}.
    3838 10. An {{{update()}}} method has been added to querysets to allow multiple objects to have an attribute updated in a single SQL query.
     39 11. `Q` classes now fully support `&`, `|` and `~` to combine them in pairs as conjunctions or disjunctions or to negate the sense of a filter, respectively (`&` and `|` were previously supported, but returned a different type of class). Thus the `QAnd`, `QOr` and `QNot` classes are no longer required and have been deprecated. Using them raises a warning (although they still work as before).
    3940
    4041== Backwards incompatible changes ==
Back to Top