Commit Graph

2019 Commits

Author SHA1 Message Date
Ramiro Morales 6a369d2ff3 [1.2.X] Fixed errors introduced in r14280 when running Django tests under Python < 2.6.
Backport of [14287] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19 19:42:36 +00:00
Russell Keith-Magee ed195a6fd3 [1.2.X] Migrated many-to-many doctests. Thanks to George Sakkis for the patch.
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 12:28:48 +00:00
Russell Keith-Magee 0476014a76 [1.2.X] Migrated many-to-one doctests. Thanks to George Sakkis for the patch.
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-19 05:11:56 +00:00
Ramiro Morales 9bcdb620cb [1.2.X] Converted queries tests from doctests to unittests.
Thanks Russell and Alex for reviews and suggestions.

Backport of [14279] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14280 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19 04:17:29 +00:00
Honza Král efcb7776a0 [1.2.X] Fixed #13790 -- auto detection of m2m fields to Site. Thanks, gabrielhurley!
Backport from trunk (r14251).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-18 05:02:28 +00:00
Jannis Leidel 55d8c47d29 [1.2.X] Fixed a few other backporting-related bugs introduced in r14213.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-17 16:09:07 +00:00
Jannis Leidel 630b1fc09b [1.2.X] Removed stray code introduced in r14126 that broke the test suite.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-17 15:41:00 +00:00
Jannis Leidel 0e4737ec24 [1.2.X] Fixed #13963 -- Use the correct verbose name of a reverse relation field in the admin. Thanks, sfllaw and d0ugal.
Backport from trunk (r14244).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-17 15:40:41 +00:00
Alex Gaynor 2a33115040 Corrected a suite of test failures when running under postgres. Backport of [14241].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-17 01:50:58 +00:00
Jannis Leidel 11713a8771 [1.2.X] Fixed #14126 -- Fixed an issue with changes to the blocktrans tag introduced in r13973 related to multiple plural forms. Thanks, mark0978, svetlyak40wt and Ramiro.
Backport from trunk (r14239).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-16 20:51:06 +00:00
Alex Gaynor 386b681105 [1.2.X] Converted or_lookups tests from doctests to unittests. We have 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-16 17:00:35 +00:00
Alex Gaynor 7ddeb86cb6 [1.2.X] Fixed #14473 -- converted the model_package tests from doctests to 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 07:34:41 +00:00
Alex Gaynor 3c469e95fb [1.2.X] Fixed #14472 -- converted generic_relations tests from doctests to 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-15 06:52:53 +00:00
Alex Gaynor f18e27145c [1.2.x] Fixed #14454 -- converted admin_widgets tests from doctests to unittests. We have always been at war with doctests. Thanks to prestontimmons for the patch. Backport of [14221].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-15 02:41:21 +00:00
Jannis Leidel 7be27dc083 [1.2.X] Fixed #14301 -- Handle email validation gracefully with email addresses containing non-ASCII characters. Thanks, Andi Albrecht.
Backport from trunk (r14216).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-14 18:38:43 +00:00
Alex Gaynor e50066d0b5 [1.2.X] Fixed #14456 -- converted inline_formsets tests from doctests to unittests. We have always been at war with doctests. Thanks to prestontimmons for the patch. Backport of [14212].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-14 01:40:39 +00:00
Alex Gaynor 14419f916b [1.2.X] Fixed #14459 -- converted many_to_one_regress tests from doctests to unittests. We have always been at war with doctests. Patch from Gabriel Hurley. Backport of [14210].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14211 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-14 01:24:55 +00:00
Alex Gaynor 25db006b7b [1.2.X] Fixed #14460 -- converted managers_regress tests from doctests to unittests. We have always been at war with doctests. Patch from Gabriel Hurley. Backport of [14207].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-14 01:17:32 +00:00
Alex Gaynor 1df25941b3 [1.2.X] Fixed #14458 -- converted m2m_regress tests from doctests to unittests. We have always been at war with doctests. Thanks to Gabriel Hurley for the patch. Backport of [14205].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14206 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-14 01:11:22 +00:00
Honza Král 18a605d6ad [1.2.X] Changed unique validation in model formsets to ignore None values, 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-13 00:33:10 +00:00
Russell Keith-Magee 3c8bc8c64b [1.2.X] Modified the test_client tests to use the non-deprecated mail API.
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 14:09:02 +00:00
Alex Gaynor 9b077ee4b6 [1.2.X] Converted model_inheritance_select_related tests from doctests to unittests. We have always been at war with doctests. Backport of [14181].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12 02:09:35 +00:00
Alex Gaynor 9ab383b394 [1.2.X] Converted initial_sql_regress tests from doctests (sort of...) to unittests. We have always been at war with doctests. Backport of [14179].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12 01:59:46 +00:00
Alex Gaynor de8ff6b672 [1.2.X] Converted get_or_create_regress tests from doctests to unittests. We have always been at war with doctests. Backport of [14177].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12 01:54:48 +00:00
Russell Keith-Magee 5f8332af04 [1.2.X] Tweak to many_to_one_null doctest to avoid primary key assumptions (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 01:02:57 +00:00
Russell Keith-Magee 6f7f1f651b [1.2.X] Migrated one_to_one doctests. Thanks to George Sakkis for the patch. (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 01:02:37 +00:00
Russell Keith-Magee 6b1a45289b [1.2.X] Migrated many_to_one_null doctests. Thanks to George Sakkis for the 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 01:02:13 +00:00
Russell Keith-Magee 5ecb496d6c [1.2.X] Migrated properties doctests. Thanks to George Sakkis for the patch.
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 01:01:49 +00:00
Russell Keith-Magee d83af03c59 [1.2.X] Migrated the mutually_referential doctests. Thanks to George Sakkis 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 01:01:25 +00:00
Russell Keith-Magee b12428de91 [1.2.X] Migrated m2o_recursive and m2o_recursive2 tests, merging them into a 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-12 01:00:58 +00:00
Jannis Leidel d327611b24 [1.2.X] Fixed #13494 -- Correctly concat an email subject prefix with a translation string. Thanks, hcarvalhoalves and Andi Albrecht.
Backport from trunk (r14157).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11 22:36:17 +00:00
Alex Gaynor 01d1dd6935 [1.2.X] Fixed #14444 -- Convert the pagination doctests to unittests. We 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 20:38:29 +00:00
Alex Gaynor efc7524236 [1.2.X] Converted ordering tests from doctests to unittests. We have always 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 18:18:12 +00:00
Alex Gaynor 6d34d308aa [1.2.X] Converted save_delete_hooks tests from doctests to unittests. We 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-11 17:41:59 +00:00
Jacob Kaplan-Moss 69d40b4a6f [1.2.X] Fixed #14440 - Converted mail doctests to unittests.
Thanks to Rob Hudson for the patch and also to andialbrecht who filed a
similar patch that I didn't use.

Backport of r14143 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14144 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11 15:18:34 +00:00
Alex Gaynor b014c81fa7 [1.2.X] Converted signals tests from doctests to unittests. We have always 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
2010-10-10 18:28:53 +00:00
Ramiro Morales 46812b4c2b [1.2.X] Fixed #6073 -- Made compilemessages 18n management command reject PO files with BOM.
Backport of [14125] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10 16:45:06 +00:00
Chris Beaven fee4aa31d7 [1.2.X] Fixed #11907 -- EmailField now runs strip() on its input. This means mistakenly including leading or trailing spaces will not cause a validation error, and clean() will remove those spaces. Thanks, krisneuharth and djansoft. Backport of [13997].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10 10:02:18 +00:00
Carl Meyer 700c5a3dfe [1.2.X] Refs #11256 -- Extended the annotation field name conflict check to cover m2ms and reverse related descriptors as well. This is needed to actually cover the case raised by #14373. Backport of [14116].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14117 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10 08:06:39 +00:00
Ramiro Morales 4d70df8b78 [1.2.X] Fixed #12650 -- Don't generate invalid XHTML in the admin, databrowse apps when
the i18n context processor is active. Thanks to Rob Hudson for the report and
fix suggestion.

Backport of [14104] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10 01:59:17 +00:00
Alex Gaynor 5d9140c137 [1.2.X] Fixed a typo in the comments tests, as well as a dependency on CPython's reference counting semantics. Backport of [14098].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 23:05:09 +00:00
Alex Gaynor ee8fc8d93a [1.2.X] Converted defer_regress tests from doctests to unittests. We have always been at war with doctests. Backport of [14094].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 21:55:33 +00:00
Carl Meyer b6223d3020 [1.2.X] Added sanity-checking of annotation alias names. Backport of [14092] from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 20:10:00 +00:00
Alex Gaynor b3e02d19ec [1.2.X] Fixed #14011 -- Doing a subquery with __in and an EmptyQuerySet no longer raises an Exception. This is actually just a test for this, it was fixed by [14085]. Thanks to skatei for the report and mk for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14087 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 16:51:50 +00:00
Alex Gaynor bb66cb8463 [1.2.X] Fixed #14366 -- Model.objects.none().values() now correctly returns a QuerySet with no items, rather than raising an Exception. Thanks to Carl Meyer for the patch. Backport of [14084].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14085 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 16:46:25 +00:00
Alex Gaynor 2e5f0c228f [1.2.X]. Convert m2m_recursive tests to unittests. We have always been at war with doctests. Backport of [14082].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 16:27:19 +00:00
Russell Keith-Magee 935f6873dd [1.2.X] Fixed #14427 -- Added --bisect and --pair flags to runtests.py, making it easier to find pairs of tests that fail when run together.
Backport of r14079 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 14:47:28 +00:00
Russell Keith-Magee 9584b77c35 [1.2.X] Fixed #11509 -- Modified usage of "Web" to match our style guide in various documentation, comments and code. Thanks to timo and Simon Meers for the work on the patch
Backport of r14069 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 08:25:01 +00:00
Russell Keith-Magee a322ba66a1 [1.2.X] Migrated the custom_columns doctests to unit tests. Thanks to Alex Gaynor.
Backport of r13765 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14071 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 08:23:32 +00:00
Alex Gaynor ae448e4439 [1.2.X] Fixed #13241. order_with_respect_to now works with ForeignKeys who refer to their model lazily (i.e. with a string). Thanks to Gabriel Grant for the patch. This is a backport of [14045].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-08 23:55:38 +00:00