Ticket #7260: db-api.diff
File db-api.diff, 718 bytes (added by , 17 years ago) |
---|
-
docs/db-api.txt
1061 1061 Returns the object matching the given lookup parameters, which should be in 1062 1062 the format described in `Field lookups`_. 1063 1063 1064 ``get()`` raises `` AssertionError`` if more than one object was found.1065 1064 ``get()`` raises ``MultipleObjectsReturned`` if more than one object was found. 1065 The ``MultipleObjectsReturned`` exception is an attribute of the model class. 1066 1066 ``get()`` raises a ``DoesNotExist`` exception if an object wasn't found for the 1067 1067 given parameters. The ``DoesNotExist`` exception is an attribute of the model 1068 1068 class. Example::