summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2009-03-06 04:51:05 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2009-03-06 04:51:05 +0000
commit53da1e47942f22a56e761d786ba89d05ca55a224 (patch)
treed7845386eddb1ec0eeb7d127e536248f53dc92c5 /docs
parentb5d4a8ae1b63c35113ee225a15e819adb944b6a1 (diff)
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. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions