summaryrefslogtreecommitdiff
path: root/tests/modeltests
AgeCommit message (Collapse)Author
2011-09-10[1.2.X] Altered the behavior of URLField to avoid a potential DOS vector, ↵Russell Keith-Magee
and to avoid potential leakage of local filesystem data. A security announcement will be made shortly. Backport of r16760 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@16766 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-10[1.2.X] Fixed a bunch more tests that were failing in Oracle due to false ↵Ian Kelly
assumptions about the primary keys of objects. Backport of r15789 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-09[1.2.X] Fixed a number of tests that were failing in Oracle due to false ↵Ian Kelly
assumptions about the primary keys of objects. Backport of r15779 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15780 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-08[1.2.X] Added a skip for a test that fails in Oracle. Unlike other ↵Ian Kelly
backends, Oracle does not allow duplicate rows where there is a unique_together constraint for which some but not all of the columns are NULL. Backport of r15777 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15778 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-04[1.2.X] Refs #15550 -- Corrected another primary-key ordering problem in the ↵Russell Keith-Magee
modelforms tests. Thanks to bberes for the report. Backport of r15753 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15754 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-04[1.2.X] Fixed #15550 -- Corrected an ordering dependency in the model_forms ↵Russell Keith-Magee
doctests. Thanks to bberes for the report. Backport of r15745 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15748 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-21[1.2.X] Fixed #15364 -- Ensure files are closed correctly during file tests. ↵Russell Keith-Magee
Thanks to Mila for the report and patch. Backport of r15604 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19[1.2.X] Fixed #9161 -- Ensure that ModelMultipleChoiceField respects ↵Russell Keith-Magee
to_field_name in validation. Thanks to Honza for the report, and Gregor Müllegger for the patch. Backport of r15587 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05[1.2.X] Modified wrong expected model formset output in a couple of ↵Ramiro Morales
additional tests after fix introduced in [15424]. Refs #15167. Backport of [15430] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-27[1.2.X] Fixed #14823 -- Corrected bootstrapping problems with ↵Russell Keith-Magee
register_serializers. Thanks to miker985@uw.edu for the report and draft patch. Backport of r15336 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-26[1.2.X] Fixed #6456 - Excised FileField file deletion to avoid data loss. ↵Carl Meyer
Thanks to durdinator for the report. Backport of r15321 from trunk. Backported despite slight backwards-incompatibility due to potential for data loss. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-26[1.2.X] Fixed #13206 -- call super().__init__() in Model.__init__ to allow ↵Alex Gaynor
mixins to do things there. Backport of [15317]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-25[1.2.X] Fixed #11319 - Added lookup support for ForeignKey.to_field. Also ↵Carl Meyer
reverted no-longer-needed model formsets workaround for lack of such support from r10756. Thanks Russell and Alex for review. Backport of r15303 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13[1.2.X] Fixed #14951 -- Made the unique_for_{date,month,year} model field ↵Ramiro Morales
constraints to not fail when the related DateField is empty. Existing modelforms tests were extended to cover this case and an equivalent set of tests was added for the model functionality. Backport of [15167] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-29[1.2.X] Fixed #7726 -- Added validation of max_digits and decimal_places ↵Ramiro Morales
options to DecimalField model field. Thanks theevilgeek for the report and elbarto for the patch. Backport of [15094] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-23[1.2.X] Fixed #14939: Don't strip ;-parameters from URLs in the test client.Andrew Godwin
Backport of [15027] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15045 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Fixed #14919 - test isolation issue with ↵Luke Plant
model_inheritance.ModelInheritanceTests.test_multiple_table and views.DefaultsTests.test_csrf_token_in_404 test_csrf_token_in_404 was assuming DEBUG = False, and test_multiple_table was leaving DEBUG = True. Both issues have been fixed. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04[1.2.X] Fixed a broken test introduced in [14786].Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14806 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04[1.2.X] Removed all usages of deprecated TestCase methods (self.fail*). ↵Alex Gaynor
This removed most of the Warnings emitted (with -Wall) during the test suite. Backport of [14803]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-03[1.2.X] Fixed #14700 -- ensure that a raw query is only executed once per ↵Alex Gaynor
iteration. Backport of [14785]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-01[1.2.X] Fixed result ordering assumptions in the select_related tests.Ian Kelly
Backport of r14762 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17[1.2.X] Migrated model_formsets doctests. Thanks to Gregor Müllegger for ↵Russell Keith-Magee
the patch. Backport of r14590 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-14[1.2.X] Fixed #3055 -- Validate that models target of a GenericRelation have ↵Ramiro Morales
a GenericForeignKey field. Thanks jason for diagnosing the problem and Marcos Moyano for the patch. Backport of [14563] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14565 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12[1.2.X]Converted m2m_signals from doctests to unittests. Thanks to Gregor ↵Alex Gaynor
Müllegger for the patch. We have always been at war with doctests. Backport of [14548]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-11[1.2.X] Removed the executable bit from a test file, it wasn't. Thanks to ↵Alex Gaynor
Florian for the report. Backport of [14530]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02[1.2.X] Fixed #10728 -- corrected subclassing of Fields who use the ↵Alex Gaynor
SubfieldBase metaclass. Thanks to G2P and George Sakkis for their work on the patch. Backport of [14443]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02[1.2.X] Fixed a few more cases of the tests not properly restoring sys.path ↵Alex Gaynor
(follow up on [14430]). Backport of [14431]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02[1.2.X] Migrated lookup doctests. Thanks to George Sakkis for the patch.Russell Keith-Magee
Backport of r14423 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14424 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02[1.2.X] Migrated basic doctests. Thanks to Preston Timmons for the patch.Russell Keith-Magee
Backport of r14421 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14422 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02[1.2.X] Migrated m2m_through doctests. Thanks to the anonymous contributor.Russell Keith-Magee
Backport of r14419 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-25[1.2.X] Converted model_inheritance doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Backport of [14348]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21[1.2.X] Fixed #14513 -- check fields with underscores for validity when ↵Chris Beaven
ordering. Bonus points to Klaas van Schelven. Backport from trunk (r14315) git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14317 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19[1.2.X] Migrated many-to-many doctests. Thanks to George Sakkis for the patch.Russell Keith-Magee
Backport of r14285 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19[1.2.X] Migrated many-to-one doctests. Thanks to George Sakkis for the patch.Russell Keith-Magee
Backport of r14281 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14282 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-17Corrected a suite of test failures when running under postgres. Backport of ↵Alex Gaynor
[14241]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-16[1.2.X] Converted or_lookups tests from doctests to unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Paul Tax for the patch. Backport of [14236]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-15[1.2.X] Fixed #14473 -- converted the model_package tests from doctests to ↵Alex Gaynor
unitests. We have always been at war with doctests. Thanks to Gabriel Hurley for the patch. Backport of [14227]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-15[1.2.X] Fixed #14472 -- converted generic_relations tests from doctests to ↵Alex Gaynor
unitests. We have always been at war with doctests. Thanks to Gabriel Hurley for the patch. Backport of [14225]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-13[1.2.X] Changed unique validation in model formsets to ignore None values, ↵Honza Král
not just omit them. Thanks claudep! Backport of r14193 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Modified the test_client tests to use the non-deprecated mail API.Russell Keith-Magee
Backport of r14187 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Tweak to many_to_one_null doctest to avoid primary key assumptions ↵Russell Keith-Magee
(causing breakage on PostgreSQL). Backport of r14168 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Migrated one_to_one doctests. Thanks to George Sakkis for the patch. ↵Russell Keith-Magee
(We have always been at war with doctests) Backport of r14167 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Migrated many_to_one_null doctests. Thanks to George Sakkis for the ↵Russell Keith-Magee
patch. Backport of r14166 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14172 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Migrated properties doctests. Thanks to George Sakkis for the patch.Russell Keith-Magee
Backport of r14165 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Migrated the mutually_referential doctests. Thanks to George Sakkis ↵Russell Keith-Magee
for the patch. Backport of r14164 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Migrated m2o_recursive and m2o_recursive2 tests, merging them into a ↵Russell Keith-Magee
single package. Thanks to George Sakkis for the patches. Backport of r14163 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11[1.2.X] Fixed #14444 -- Convert the pagination doctests to unittests. We ↵Alex Gaynor
have always been at war with doctests. Thanks to Gabriel Hurley for the patch. Backport of [14152]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11[1.2.X] Converted ordering tests from doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Backport of [14147]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11[1.2.X] Converted save_delete_hooks tests from doctests to unittests. We ↵Alex Gaynor
have always been at war with doctests. Backport of [14145]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10[1.2.X] Converted signals tests from doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Backport of [14131]. Conflicts: tests/modeltests/signals/models.py git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14132 bcc190cf-cafb-0310-a4f2-bffc1f526a37