django/tests
Malcolm Tredinnick 84b890b66e [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
2009-03-06 04:53:33 +00:00
..
modeltests [1.0.X] Fixed #10347 -- Fixed incorrect AttributeError raised when attempting to access a FileField without an instance. Thanks for the report and patch dc. 2009-02-24 17:28:33 +00:00
regressiontests [1.0.X] Fixed #9649 -- Better error handling in model creation. 2009-03-06 04:53:33 +00:00
templates Fixed #7602 -- Corrected lookup keyword arguments in archive_month and archive_week to properly range when date_field is from DateField. Thanks nullie for the original patch and Colin Grady for the test coverage. 2008-08-23 04:46:33 +00:00
runtests.py Removed the need for ROOT_URLCONF in settings when running Django's core tests 2008-08-30 05:09:03 +00:00
urls.py [1.0.X] Fixed #9498 -- Handle a formset correctly when the foreign key is not available (for now). 2008-11-13 19:05:49 +00:00