Django

Code

Show
Ignore:
Timestamp:
03/20/08 01:56:23 (8 months ago)
Author:
mtredinnick
Message:

Fixed #6445 -- Allow model instances to be used as a default for ForeignKeys?
(via a callable). Also updates the documentation of the "default" attribute to
indicate a callable can be used. Thanks, Philipe Raoult.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/model-api.txt

    r7302 r7331  
    627627~~~~~~~~~~~ 
    628628 
    629 The default value for the field. 
     629The default value for the field. This can be a value or a callable object. If 
     630callable it will be called every time a new object is created. 
    630631 
    631632``editable``