django/tests
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
..
modeltests Fixed #6886: Tightened up ForeignKey and OneToOne field assignment. Specifically: 2008-06-05 00:39:32 +00:00
regressiontests Fixed #6886: Tightened up ForeignKey and OneToOne field assignment. Specifically: 2008-06-05 00:39:32 +00:00
templates Fixed #5506 -- Added some basic tests for date-based generic views. Thanks to robh for the original patch. 2007-09-19 13:26:56 +00:00
runtests.py Fixed #6200 -- Made the core tests independent of the value of LOGIN_URL, since they are sensitive to its setting. Thanks, Jason Yan. 2007-12-17 10:31:20 +00:00
urls.py Merged the tests and documentation from #4720 to support the changes in [7295]. 2008-03-20 06:35:53 +00:00