Django

Code

Changeset 5757

Show
Ignore:
Timestamp:
07/24/07 22:15:05 (1 year ago)
Author:
adrian
Message:

Added 'New in Django development version' to docs/db-api.txt change from [5746]

Files:

Legend:

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

    r5746 r5757  
    19121912    e = get_object_or_404(Entry.recent_entries, pk=3) 
    19131913 
    1914 If you need to use a custom method that you added to a custom manager, 
    1915 then you can provide ``get_object_or_404()`` with a ``QuerySet`` object. 
    1916 For example:: 
     1914**New in Django development version:** The first argument to 
     1915``get_object_or_404()`` can be a ``QuerySet`` object. This is useful in cases 
     1916where you've defined a custom manager method. For example:: 
    19171917 
    19181918    # Use a QuerySet returned from a 'published' method of a custom manager