1536 Commits

Author SHA1 Message Date
Alex Gaynor
edcb475381 [1.2.X] Converted Icelandic localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14944].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:58 +00:00
Alex Gaynor
56f5043c23 [1.2.X] Converted Irish localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14942].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:49 +00:00
Alex Gaynor
3c50c138c5 [1.2.X] Converted Indonesian localflavor doctests to unittests. We have always been a war with doctests. Thanks to Idan Gazit. Backport of [14941].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14966 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:39 +00:00
Alex Gaynor
994ba4f3ad [1.2.X] Converted generic localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14940].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14965 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:30 +00:00
Alex Gaynor
4aedbcb57e [1.2.X] Converted French localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14939].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14964 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:20 +00:00
Alex Gaynor
aaaaa831fe [1.2.X] Converted Finnish localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14938].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14963 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:11 +00:00
Alex Gaynor
812b1b2d8c [1.2.X] Converted Spanish localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14937].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14962 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:01 +00:00
Alex Gaynor
cae809bb3c [1.2.X] Converted Chilean localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14936].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14961 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:12:51 +00:00
Alex Gaynor
177b090ec2 [1.2.X] Converted Swiss localflavor doctests to unittests. Thanks to Idan Gazit for the patch. Backport of [14935].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14960 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:12:41 +00:00
Alex Gaynor
94adbd1d12 [1.2.X] Converted Canadian localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14934].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14959 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:12:31 +00:00
Alex Gaynor
d2ef2cd9cc [1.2.X] Converted the Brazillian localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14933].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14958 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:12:22 +00:00
Alex Gaynor
f32feafccf [1.2.X] Converted Australian localfavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14931],
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14957 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:12:08 +00:00
Luke Plant
5a33ce2500 [1.2.X] Fixed #14919 - test isolation issue with 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-18 19:35:46 +00:00
Karen Tracey
6c357cc9bb [1.2.X] Fixed the ModelMultipleChoiceFieldTests to pass even on DB backends that do not reuse pk values after rollback.
r14928 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14929 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 17:40:53 +00:00
Karen Tracey
5e6c5418c0 [1.2.X] Fixed test_runner tests on 1.2.X branch to not atempt to use new unittest support that does not exist there.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 16:51:18 +00:00
Jannis Leidel
bd4f4b8ab9 [1.2.X] Fixed #13726 -- Further refine changes made in r12384 and r13069 for using non-English source languages in JavaScript translation catalogues. Thanks, Ramiro.
Backport from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14911 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-13 13:58:38 +00:00
Jannis Leidel
33a6201fdf [1.2.X] Fixed #14312 -- Raising an `IncorrectLookupParameters` if the page number given to an admin change list exceeds the number of the last page. Thanks, mk.
Backport from trunk (r14889).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-13 13:57:38 +00:00
Jannis Leidel
49c2f23ec1 [1.2.X] Fixed #14158 -- Fixed SelectMultiple._has_changed to not assume same order of data anymore. Thanks, akaariai and dmoisset.
Backport from trunk (r14887).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14907 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-13 13:57:15 +00:00
Jannis Leidel
32bf35da09 [1.2.X] Fixed #14144 -- Made sure custom validators are called in ModelMultipleChoiceFields. Thanks, matiasb.
Backport from trunk (r14886).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14906 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-13 13:56:55 +00:00
Alex Gaynor
b734e3514e [1.2.X] Fixed #14499 -- ATSocialSecurityNumberField now responds to all EMPTY_VALUES correctly. Also converted Austrian localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14873].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-12 04:37:01 +00:00
Alex Gaynor
9bbd12120e [1.2.X] Converted the Argentina localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14872].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-12 04:35:24 +00:00
Alex Gaynor
1c81377af5 [1.2.X] Ensure that a Popen object is closed promptly during the tests. Backport [14853].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-08 04:03:30 +00:00
Russell Keith-Magee
b0d9eaaa6a [1.2.X] Fixed #14799 -- Provided a full solution for test database creation order problems.
Backport of r14822, r14823 and r14824 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-05 01:54:15 +00:00
Russell Keith-Magee
6c53a816e7 [1.2.X] Fixed #14807 -- Ensure that boolean values aren't localized as T.rue and Fa.lse because of the thousand separator. Thanks to vanschelven for the report and
Backport of r14804 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14807 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04 08:04:16 +00:00
Alex Gaynor
70383ccf68 [1.2.X] Fixed a broken test introduced in [14786].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14806 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04 07:53:23 +00:00
Alex Gaynor
cc48f66f73 [1.2.X] Removed all usages of deprecated TestCase methods (self.fail*). 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-04 07:49:31 +00:00
Ian Kelly
99b5526c19 [1.2.X] Added a regression test for r14781.
Backport of r14783 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-03 18:39:09 +00:00
Jannis Leidel
6690e08eac [1.2.X] Fixed broken German localflavor test introduced in r14627. Thanks for Rubber Ducking, Alex and Carl.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-02 02:00:32 +00:00
Jannis Leidel
a607d9d345 [1.2.X] Fixed #8342 -- Removed code from the admin that assumed that you can't login with an email address (nixed by r12634).
Backport from trunk (r14769).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-02 01:02:11 +00:00
Ramiro Morales
6128255838 [1.2.X] Fixed #14812 -- Made parsing of the If-Modified-Since HTTP header more robust in presence of malformed values when serving static content. Thanks shaohua for the report, and alexey.smolsky@gmail.com for a similar report and patch.
Backport of r14753 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14754 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-30 21:32:11 +00:00
Alex Gaynor
56dc22d64c [1.2.X] Fixed a suite of errors in the ORM -- a) fixed calling values_list().values_list() and changing whether the results are flat, b) fixed an issue with fields on the left-hand side of what becomes the HAVING clause not being included in the GROUP BY clause, and c) fixed a bug with fields from values() calls not being included in the GROUP BY clause. This fixed the recent test failures under postgresql. Backport of [14715].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-26 14:28:27 +00:00
Alex Gaynor
c2de746ea5 [1.2.X] Fixed #14754 -- corrected using an aggregate in an F expressions when that queryset is later used in a subquery. Thanks to master for the patch. Backport of [14681].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-22 18:02:33 +00:00
Ramiro Morales
4e3c8c6aff [1.2.X] Fixed #14453 -- Changed handling of microseconds part in typecast_timestamp() DB backend helper function to be more correct. Thanks philipn for the report and fix.
Backport of [14664] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14665 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-21 15:19:46 +00:00
Chris Beaven
d04ffd7247 Fixes #13804 -- URLField validation failure for a url containing '://' on the path and no scheme. Backport of r14657
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14658 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-21 10:16:02 +00:00
Carl Meyer
b199cb36f3 [1.2.X] Fixed poorly-constructed test from r14612. Thanks to Alex Gaynor for the eagle eyes.
Backport of r14635 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-20 00:06:19 +00:00
Alex Gaynor
7236b76e25 Corrected some issues with the backport from [14627].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-19 23:56:38 +00:00
Ramiro Morales
237e9557d7 [1.2.X] Corrected change in behavior regarding the page shown after the 'Save' button is pressed when adding a user through the admin.
It had been introduced in trunk (r13503) and between 1.2.1 and 1.2.2 (r13504). The original fix intended to correct a similar problem introduced between 1.1 and 1.2 (r12218) this time in the 'Save and add another' button.
We have now tests for the three buttons present in the Add User admin form to avoid future regressions.
Thanks to Juan Pedro Fisanotti and Cesar H. Roldan for their work.

Backport of [14628] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14629 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-19 23:04:48 +00:00
Alex Gaynor
da163cc957 [1.2.X] Began converting localflavor doctests into unittests, starting with the German ones. Also introduced a new base class to facilitate ease of testing form fields. We have always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14626].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14627 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-19 19:34:17 +00:00
Alex Gaynor
9edd6953cc [1.2.X] Converted the model_regress doctests into unittests. We have always been at war with doctests. Backport of [14614].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14617 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-18 23:51:20 +00:00
Carl Meyer
87fe4be9c5 [1.2.X] Fixed pk uniqueness validation for new objects created outside of a ModelForm. Also removed need for ModelForm to poke at Model._state.adding, keeping it an internal ORM concern.
Backport of r14613.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-18 23:46:26 +00:00
Carl Meyer
d88cabd3da [1.2.X] Fixed #14234 -- Re-validating a model instance added via ModelForm no longer throws spurious PK uniqueness errors. Thanks to David Reynolds and Jeremy Dunck.
Also moved Model._adding to Model._state.adding to reduce instance namespace footprint.

Backport of r14612.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-18 23:46:09 +00:00
Alex Gaynor
1aaf270d73 [1.2.X] Fixed #14423 -- corrected incorrect SQL being generated when a nullable, inherited field was used in an exclude. Thanks to PhiR_42 for the patch. Backport of [14600].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14601 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 16:47:46 +00:00
Ramiro Morales
8acad926df [1.2.X] Fixed #11369 -- Corrected verbose_name_plural model Meta option to be consistent with verbose_name when using abstract model inheritance. Thanks Beetle_B for the report.
Backport of [14588] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14589 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 12:24:47 +00:00
Alex Gaynor
03b111c6cc [1.2.X] Fixed #12687 -- fixed an issue with aggregates and counts in conjunction with annotations where the QuerySet was provably empty. Backport of [14586].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14587 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 02:58:59 +00:00
Ramiro Morales
746ce7d967 [1.2.X] Fixed #14691 -- Made ForeignKey.validate() use the right database. Thanks Marco Paolini for the report.
Backport of [14580] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 22:17:51 +00:00
Russell Keith-Magee
10fafed666 [1.2.X] Migrated model_inheritance_regress doctests. Thanks to Gregor Müllegger for the patch.
Backport of r14576 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14577 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 15:15:47 +00:00
Russell Keith-Magee
587c66f7a0 [1.2.X] Migrated forms (minus localflavor) doctests. A huge thanks to Daniel Lindsley for the patch.
Backport of r14570 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 14:48:52 +00:00
Alex Gaynor
478a4e22ad [1.2.X] Added a test for using an __in lookup with a ValueListQueryset from a none() call. Refs #14622. Backport of [14568].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 02:36:00 +00:00
Ian Kelly
17bd39ae5a [1.2.X] Backport of r14547 from trunk.
Fixed a test case that was failing in Oracle due to conflation of null and empty strings.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12 19:47:41 +00:00
Ian Kelly
80946dc0fa [1.2.X] Backport of r14545 from trunk.
Fixed a multiple_database test case that was failing in Oracle due to forced table name capitalization.  The test case now matches the style used by the raw_query tests.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12 18:51:54 +00:00