Django

Code

Changeset 5756

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

Changed docstring additions from [5744] to use active verbs ('returns' instead of 'return')

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/shortcuts/__init__.py

    r5747 r5756  
    1212def render_to_response(*args, **kwargs): 
    1313    """ 
    14     Return a HttpResponse whose content is filled with the result of calling 
     14    Returns a HttpResponse whose content is filled with the result of calling 
    1515    django.template.loader.render_to_string() with the passed arguments. 
    1616    """ 
     
    2020def _get_queryset(klass): 
    2121    """ 
    22     Return a QuerySet from a Model, Manager, or QuerySet. Created to make 
     22    Returns a QuerySet from a Model, Manager, or QuerySet. Created to make 
    2323    get_object_or_404 and get_list_or_404 more DRY. 
    2424    """ 
     
    3333def get_object_or_404(klass, *args, **kwargs): 
    3434    """ 
    35     Use get() to return an object, or raise a Http404 exception if the object 
     35    Uses get() to return an object, or raises a Http404 exception if the object 
    3636    does not exist. 
    3737 
    38     klass may be a Model, Manager, or QuerySet object. All other passed 
     38    klass may be a Model, Manager, or QuerySet object. All other passed 
    3939    arguments and keyword arguments are used in the get() query. 
    4040 
     
    5050def get_list_or_404(klass, *args, **kwargs): 
    5151    """ 
    52     Use filter() to return a list of objects, or raise a Http404 exception if 
     52    Uses filter() to return a list of objects, or raise a Http404 exception if 
    5353    the list is empty. 
    5454 
    55     klass may be a Model, Manager, or QuerySet object. All other passed 
     55    klass may be a Model, Manager, or QuerySet object. All other passed 
    5656    arguments and keyword arguments are used in the filter() query. 
    5757    """