Fixed #6445 -- Allow model instances to be used as a default for ForeignKeys
commit5f610c87a6eeec448b743fe7249204b46a04981e
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Thu, 20 Mar 2008 06:56:23 +0000 (20 06:56 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Thu, 20 Mar 2008 06:56:23 +0000 (20 06:56 +0000)
treed0501cba06757600eaab4afa55af86ef8e72414d
parentb5361de37e4b631ccda662049ca4afa8a38893b5
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.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/db/models/fields/related.py
docs/model-api.txt
tests/regressiontests/model_fields/models.py