diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-03-06 04:53:33 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-03-06 04:53:33 +0000 |
| commit | 84b890b66e80bcc1834c22b8b347641b2e51f455 (patch) | |
| tree | 24d6c1d63e5e5c8a407db1ffe898330c300b9b44 /docs/_static | |
| parent | dd5300274f81e8ea41f3ef41487179e2b1770d65 (diff) | |
[1.0.X] Fixed #9649 -- Better error handling in model creation.
Previously, you could explicitly assign None to a non-null ForeignKey
(or other) field when creating the model (Child(parent=None), etc). We
now throw an exception when you do that, which matches the behaviour
when you assign None to the attribute after creation.
Thanks to ales.zoulek@gmail.com and ondrej.kohout@gmail.com for some
analysis of this problem.
Backport of r9983 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/_static')
0 files changed, 0 insertions, 0 deletions
