django1/django/db/models
Malcolm Tredinnick b3b8422363 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
2008-03-20 06:56:23 +00:00
..
fields Fixed #6445 -- Allow model instances to be used as a default for ForeignKeys 2008-03-20 06:56:23 +00:00
__init__.py Added the small changes necessary to make creating custom model fields easier. 2007-11-05 13:59:42 +00:00
base.py Fixed #2936, #6500 -- Added a __hash__() method to Models (since we implement our own __eq__ method). 2008-02-19 01:59:34 +00:00
loading.py Removed code that was recasting major errors found during application import. If an application can't be imported, it now throws a full stack trace with the problem, rather than reporting the problem as a one line message. 2007-09-10 07:00:46 +00:00
manager.py Fixed #3032 -- Added some useful methods and attributes so that AnonymousUser can proxy for a User a bit more logically. Patch from semenov. 2007-09-15 18:01:29 +00:00
manipulators.py Fixed #5444 -- Changed manipulator class construction to use type(), rather than types.ClassType(). Helps with Jython compatibility. Patch from Leo Soto. 2007-09-15 11:06:32 +00:00
options.py Fixed #3323 -- More robust error handling for related objetcs. Thanks, Greg 2007-12-02 18:10:07 +00:00
query.py Fixed #6641 -- If we lose a race when creating a new object in get_or_create, 2008-03-18 14:08:40 +00:00
related.py An improved version of the change attempted in [4693]: retain backwards 2007-03-10 07:37:08 +00:00
signals.py MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. 2006-05-02 01:31:56 +00:00