Django

Code

Show
Ignore:
Timestamp:
12/02/07 12:21:07 (1 year ago)
Author:
mtredinnick
Message:

Fixed #3511 -- Changed QuerySet?.get() to return a MultipleObjectsReturned? exception, rather than an assertion error. Thanks, Gary Wilson and cheeming.

Files:

Legend:

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

    r6257 r6838  
    3939    arguments and keyword arguments are used in the get() query. 
    4040 
    41     Note: Like with get(), an AssertionError will be raised if more than one 
     41    Note: Like with get(), an MultipleObjectsReturned will be raised if more than one 
    4242    object is found. 
    4343    """