Django

Code

Changeset 6520

Show
Ignore:
Timestamp:
10/14/07 22:58:20 (9 months ago)
Author:
mtredinnick
Message:

queryset-refactor: Added a bunch of "new in development version" markers for
recent additions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/queryset-refactor/docs/db-api.txt

    r6518 r6520  
    533533 
    534534...since the ``Blog`` model has no default ordering specified. 
     535 
     536**New in Django development version:** The syntax for ordering across related 
     537models has changed. See the `Django 0.96 documentation`_ for the old behaviour. 
     538 
     539.. _Django 0.96 documentation: http://www.djangoproject.com/documentation/0.96/model-api/#floatfield 
    535540 
    536541There's no way to specify whether ordering should be case sensitive. With 
     
    608613        [{'blog_id': 1}, ...] 
    609614 
     615**New in Django development version:** Previously, it was not possible to pass 
     616``blog_id`` to ``values()`` in the above example, only ``blog``. 
     617 
    610618A ``ValuesQuerySet`` is useful when you know you're only going to need values 
    611619from a small number of the available fields and you won't need the 
     
    15641572with the ``&`` and ``|`` operators. You can also use parenthetical grouping. 
    15651573 
    1566 ``Q`` objects can also be negated using the ``~`` operator, allowing for 
    1567 combined lookups that combine both a normal query and a negated (``NOT``) 
    1568 query:: 
     1574**New in Django development version:** ``Q`` objects can also be negated using 
     1575the ``~`` operator, allowing for combined lookups that combine both a normal 
     1576query and a negated (``NOT``) query:: 
    15691577 
    15701578    Q(question__startswith='Who') | ~Q(pub_date__year=2005)