diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-06-05 00:39:32 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-06-05 00:39:32 +0000 |
| commit | 1452d46240609ff39dacf9ea2f759ed600c2f09f (patch) | |
| tree | 523f61fd8ca3e9fa25a08ee532cda6e52ba1a406 /docs | |
| parent | d78f86a2204e610cb0cd1e2762500b3be88be184 (diff) | |
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
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
