Ticket #2176: db-api.diff

File db-api.diff, 712 bytes (added by simon@…, 18 years ago)
  • db-api.txt

     
    731731                      defaults={'birthday': date(1940, 10, 9)})
    732732
    733733Any keyword arguments passed to ``get_or_create()`` -- *except* an optional one
    734 called ``default`` -- will be used in a ``get()`` call. If an object is found,
     734called ``defaults`` -- will be used in a ``get()`` call. If an object is found,
    735735``get_or_create()`` returns a tuple of that object and ``False``. If an object
    736736is *not* found, ``get_or_create()`` will instantiate and save a new object,
    737737returning a tuple of the new object and ``True``. The new object will be
Back to Top