django/tests/regressiontests
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
..
admin_ordering
admin_registration
admin_scripts
admin_validation
admin_views Fixed #6470: made the admin use a URL resolver. 2009-01-14 20:22:25 +00:00
admin_widgets Changed "date" column to "start_date"--Oracle won't name columns with reserved keywords. 2009-01-16 21:18:21 +00:00
aggregation_regress Fixed #10290: do not use aliases when adding extra_selects to the GROUP BY clause, to generate compliant sql that will be accepted by Oracle. 2009-02-25 23:56:00 +00:00
auth_backends Fixed #7304 -- Gave AnonymousUser a has_perms() method, which it was lacking 2008-07-22 03:05:40 +00:00
backends Fixed #5543: callproc() and friends now work with Oracle and our FormatStylePlaceholderCursor. 2009-01-16 22:23:58 +00:00
bug639
bug8245 Fixed #8245 -- Added a LOADING flag to autodiscover to prevent an admin.py module with errors from raising a spurious AlreadyRegistered exception in a subsequent call to autodiscover. 2008-12-23 18:25:24 +00:00
cache
comment_tests Factor out some common pieces of django.conf.LazySettings. 2009-03-02 04:48:22 +00:00
context_processors
custom_columns_regress Fixed #9736 -- Added quoting to the SQL constraint names generated during table creation. This is to accommodate primary keys with spaces. 2008-12-02 13:23:29 +00:00
datastructures
datatypes
dateformat
datetime_safe
db_typecasts
decorators
defaultfilters
dispatch
expressions_regress Fixed #10161 -- Modified evaluation of query expressions to allow for operators that take the form of functions. This is mostly for the benefit of Oracle, but it should prove useful later on. Thanks to Ian for the report and feedback on the fix. 2009-02-24 11:15:31 +00:00
extra_regress Fixed #10256 -- Corrected the interaction of extra(select=) with values() and values_list() where an explicit list of columns is requested. 2009-02-16 12:28:37 +00:00
file_storage Fixed #9786 -- Fixed inequality checking for django.db.models.fields.file.FieldFile class. 2008-12-16 04:52:55 +00:00
file_uploads Fixed #8138 -- Changed django.test.TestCase to rollback tests (when the database supports it) instead of flushing and reloading the database. This can substantially reduce the time it takes to run large test suites. 2009-01-16 02:30:22 +00:00
fixtures_regress Fixed #9942 -- Added a to_python handler for FloatField to ensure correct typing of deserialized data before saving. Underlying problem is analogous to #8298, fixed in [8515]. Thanks to David Larlet <larlet@gmail.com> for the report and fix. 2009-01-03 04:43:58 +00:00
forms Fixed some test output in the wake of r9940. 2009-03-02 04:17:00 +00:00
generic_inline_admin Fixed #8138 -- Changed django.test.TestCase to rollback tests (when the database supports it) instead of flushing and reloading the database. This can substantially reduce the time it takes to run large test suites. 2009-01-16 02:30:22 +00:00
get_or_create_regress
httpwrappers
humanize
i18n
initial_sql_regress
inline_formsets
m2m_regress
m2m_through_regress Added a test to show that [8472] also fixed #8254. 2008-08-24 17:54:51 +00:00
mail Fixed #9214: EmailMessage now respects the From header instead of blindly using from_email. Thanks, Tai Lee. 2009-02-16 20:47:39 +00:00
managers_regress
many_to_one_regress Fixed #9649 -- Better error handling in model creation. 2009-03-06 04:51:05 +00:00
max_lengths
middleware
model_fields Fixed #5903 -- DecimalField.get_default() now correctly returns a Decimal object when the model instance was not retrieved from the database. Thanks Justin Driscoll and pigletto. 2009-02-11 20:13:17 +00:00
model_forms_regress
model_inheritance_regress Fixed #10406 -- Fixed some problems with model inheritance and pk fields. 2009-03-04 07:21:14 +00:00
model_inheritance_select_related
model_regress Fixed #9608: Ensured a Model's default repr() is printable even if its __unicode__ method raises a Unicode error. 2008-11-16 18:58:43 +00:00
modeladmin
null_fk
null_fk_ordering
null_queries Improved table join handling for comparisons against NULL. 2009-03-06 02:02:09 +00:00
one_to_one_regress Improved table join handling for comparisons against NULL. 2009-03-06 02:02:09 +00:00
pagination_regress
queries Fixed #10181 -- Handle an EmptyResultSet exception case properly in nested querysets. 2009-03-02 06:08:02 +00:00
requests Fixed #7494 -- Fixed build_absolute_url() for some types of (uncommon) URLs. 2008-08-23 17:28:12 +00:00
reverse_single_related
select_related_regress
serializers_regress Corrected code in serializers_regress testcase so that, in the case where an exception has been raised, rollback is called before attempting to leave transaction management. With the old code the original exception (IntegrityError on InnoDB) was getting hidden by a transaction management error resulting from attempting to leave transaction management with a pending commit/rollback. 2009-01-18 20:54:42 +00:00
string_lookup
syndication
templates Fixed #9701 -- Added a "safeseq" template filter. 2009-03-02 08:16:33 +00:00
test_client_regress Fixed #4476 -- Added a ``follow`` option to the test client request methods. This implements browser-like behavior for the test client, following redirect chains when a 30X response is received. Thanks to Marc Fargas and Keith Bussell for their work on this. 2009-02-27 13:14:59 +00:00
test_utils
text
urlpatterns_reverse In urlconfs, include() may now be used on an iterable of patterns instead of just a module string. Refs #6470 -- making the admin use a urlconf is much easier with this work done. Thanks, Alex Gaynor. 2009-01-10 22:54:20 +00:00
utils
views
__init__.py