Ticket #7260: db-api.diff

File db-api.diff, 718 bytes (added by leotr, 17 years ago)
  • docs/db-api.txt

     
    10611061Returns the object matching the given lookup parameters, which should be in
    10621062the format described in `Field lookups`_.
    10631063
    1064 ``get()`` raises ``AssertionError`` if more than one object was found.
    1065 
     1064``get()`` raises ``MultipleObjectsReturned`` if more than one object was found.
     1065The ``MultipleObjectsReturned`` exception is an attribute of the model class.
    10661066``get()`` raises a ``DoesNotExist`` exception if an object wasn't found for the
    10671067given parameters. The ``DoesNotExist`` exception is an attribute of the model
    10681068class. Example::
Back to Top