Ticket #2176: db-api.diff
File db-api.diff, 712 bytes (added by , 18 years ago) |
---|
-
db-api.txt
731 731 defaults={'birthday': date(1940, 10, 9)}) 732 732 733 733 Any 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,734 called ``defaults`` -- will be used in a ``get()`` call. If an object is found, 735 735 ``get_or_create()`` returns a tuple of that object and ``False``. If an object 736 736 is *not* found, ``get_or_create()`` will instantiate and save a new object, 737 737 returning a tuple of the new object and ``True``. The new object will be