Changes between Version 85 and Version 86 of RemovingTheMagic


Ignore:
Timestamp:
Mar 1, 2006, 3:02:45 PM (18 years ago)
Author:
Antti Kaihola
Comment:

Added note that exact can't be omitted for cross-app lookup

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v85 v86  
    354354
    355355    * {{{all()}}} -- Returns a {{{QuerySet}}} of all objects in the database. This is like the old {{{get_list()}}}. Takes no arguments.
    356     * {{{filter(**kwargs)}}} -- Returns a {{{QuerySet}}}, filtered by the given keyword arguments. Lookup arguments are in the same style as previously, e.g. {{{pubdate__year=2005}}}, except you can leave off {{{__exact}}} as a convenience. For example, {{{name='John'}}} and {{{name__exact='John'}}} are equivalent.
     356    * {{{filter(**kwargs)}}} -- Returns a {{{QuerySet}}}, filtered by the given keyword arguments. Lookup arguments are in the same style as previously, e.g. {{{pubdate__year=2005}}}, except you can leave off {{{__exact}}} as a convenience. For example, {{{name='John'}}} and {{{name__exact='John'}}} are equivalent. Note that for lookups between applications you can't omit {{{__exact}}}.
    357357    * {{{exclude(**kwargs)}}} is the same as {{{filter()}}}, but returns objects where the given arguments are not true.
    358358    * {{{order_by(*fieldnames)}}} -- Returns a {{{QuerySet}}}
Back to Top