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/core/exceptions.py

    r2809 r6838  
    44    "The requested object does not exist" 
    55    silent_variable_failure = True 
     6 
     7class MultipleObjectsReturned(Exception): 
     8    "The query returned multiple objects when only one was expected." 
     9    pass 
    610 
    711class SuspiciousOperation(Exception):