django1/django/db/models
Malcolm Tredinnick 53da1e4794 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
2009-03-06 04:51:05 +00:00
..
fields Changed the handling of as_sql() versus _as_sql() in Query/QuerySet from r9928. 2009-03-04 04:56:20 +00:00
sql Improved table join handling for comparisons against NULL. 2009-03-06 02:02:09 +00:00
__init__.py Fixed #7210 -- Added F() expressions to query language. See the documentation for details on usage. 2009-01-29 10:46:36 +00:00
aggregates.py Fixed #10182 -- Corrected realiasing and the process of evaluating values() for queries with aggregate clauses. This means that aggregate queries can now be used as subqueries (such as in an __in clause). Thanks to omat for the report. 2009-02-23 14:47:59 +00:00
base.py Fixed #9649 -- Better error handling in model creation. 2009-03-06 04:51:05 +00:00
expressions.py Fixed #7210 -- Added F() expressions to query language. See the documentation for details on usage. 2009-01-29 10:46:36 +00:00
loading.py Added tests for corner case with deleting where objects are deleted in the wrong order. 2008-06-21 20:55:17 +00:00
manager.py Fixed #3566 -- Added support for aggregation to the ORM. See the documentation for details on usage. 2009-01-15 11:06:34 +00:00
options.py Fixed #10251 -- Fixed model inheritance when there's also an explicit pk field. 2009-03-04 07:20:08 +00:00
query.py To avoid an unfortunately common user-error, rename QuerySet.as_sql(). 2009-03-01 04:12:30 +00:00
query_utils.py Fixed #7210 -- Added F() expressions to query language. See the documentation for details on usage. 2009-01-29 10:46:36 +00:00
related.py Removed oldforms, validators, and related code: 2008-08-27 07:19:44 +00:00
signals.py Major refactoring of django.dispatch with an eye towards speed. The net result is that signals are up to 90% faster. 2008-08-06 15:32:46 +00:00