Django

Code

Show
Ignore:
Timestamp:
04/27/08 06:55:47 (9 months ago)
Author:
mtredinnick
Message:

Made a bunch of spelling corrections.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/db-api.txt

    r7477 r7480  
    393393 
    394394You can also slice from the item ''N'' to the end of the queryset. For 
    395 example, to return everything from the fixth item onwards:: 
     395example, to return everything from the sixth item onwards:: 
    396396 
    397397    Entry.objects.all()[5:] 
     
    571571    Any fields used in an ``order_by()`` call are included in the SQL 
    572572    ``SELECT`` columns. This can sometimes lead to unexpected results when 
    573     used in conjuntion with ``distinct()``. If you order by fields from a 
     573    used in conjunction with ``distinct()``. If you order by fields from a 
    574574    related model, those fields will be added to the selected columns and they 
    575575    may make otherwise duplicate rows appear to be distinct. Since the extra 
     
    684684item is the first field, etc. For example:: 
    685685 
    686     >>> Entry.objects.values_list('id', 'headling') 
     686    >>> Entry.objects.values_list('id', 'headline') 
    687687    [(1, u'First entry'), ...] 
    688688 
     
    838838this for models that are more than one relation away by separating the field 
    839839names with double underscores, just as for filters. For example, if we have 
    840 thise model:: 
     840this model:: 
    841841 
    842842    class Room(models.Model): 
     
    21042104a queryset. You can do this with the ``update()`` method. For example:: 
    21052105 
    2106     # Update all the headlings to the same value. 
     2106    # Update all the headlines to the same value. 
    21072107    Entry.objects.all().update(headline='Everything is the same') 
    21082108