django1/django/db
Jacob Kaplan-Moss 1452d46240 Fixed #6886: Tightened up ForeignKey and OneToOne field assignment. Specifically:
* Raise a ValueError if you try to assign the wrong type of object.
  * Raise a ValueError if you try to assign None to a field not specified with null=True.
  * Cache the set value at set time instead of just at lookup time.

This is a slightly backwards-incompatible change; see BackwardsIncompatibleChanges for more details.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-05 00:39:32 +00:00
..
backends Cleaned up some comments in the Oracle backend. Fixes #7139. Thanks, adamv. 2008-05-05 16:04:50 +00:00
models Fixed #6886: Tightened up ForeignKey and OneToOne field assignment. Specifically: 2008-06-05 00:39:32 +00:00
__init__.py Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
transaction.py Fixed #7286 -- Added functools wrapping to the transaction decorators. Thanks, SmileyChris. 2008-05-29 11:50:50 +00:00