Ticket #13585: 0001.Correct-update-on-queryset-return-value-documentation.patch

File 0001.Correct-update-on-queryset-return-value-documentation.patch, 1023 bytes (added by bpp198, 14 years ago)

Documentation change.

  • topics/db/queries.txt

     
    786786    # Change every Entry so that it belongs to this Blog.
    787787    >>> Entry.objects.all().update(blog=b)
    788788
    789 The ``update()`` method is applied instantly and returns the number of rows
    790 affected by the query. The only restriction on the ``QuerySet`` that is
    791 updated is that it can only access one database table, the model's main
    792 table. You can filter based on related fields, but you can only update columns
    793 in the model's main table. Example::
     789The ``update()`` method is applied instantly. The return value is dependant on
     790the backend. The only restriction on the ``QuerySet`` that is updated is that
     791it can only access one database table, the model's main table. You can filter
     792based on related fields, but you can only update columns in the model's main
     793table. Example::
    794794
    795795    >>> b = Blog.objects.get(pk=1)
    796796
Back to Top