Ticket #23134: querysets_txt.diff

File querysets_txt.diff, 1.0 KB (added by Josh Kupershmidt <schmiddy@…>, 10 years ago)
  • docs/ref/models/querysets.txt

    diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
    index 018c0f0..613b1d3 100644
    a b This has a number of caveats though:  
    17141714
    17151715The ``batch_size`` parameter controls how many objects are created in single
    17161716query. The default is to create all objects in one batch, except for SQLite
    1717 where the default is such that at maximum 999 variables per query is used.
     1717where the default is such that at most 999 variables per query are used.
    17181718
    17191719count
    17201720~~~~~
    Example::  
    21252125    Blog.objects.get(name__iexact='beatles blog')
    21262126    Blog.objects.get(name__iexact=None)
    21272127
    2128 SQL equivalent::
     2128SQL equivalents::
    21292129
    21302130    SELECT ... WHERE name ILIKE 'beatles blog';
     2131    SELECT ... WHERE name IS NULL;
    21312132
    2132 Note this will match ``'Beatles Blog'``, ``'beatles blog'``, ``'BeAtLes
    2133 BLoG'``, etc.
     2133Note the first query will match ``'Beatles Blog'``, ``'beatles blog'``,
     2134``'BeAtLes BLoG'``, etc.
    21342135
    21352136.. admonition:: SQLite users
    21362137
Back to Top