summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2010-09-11[1.2.X] Improved unicode-type, ASCII-convertible header handling inMalcolm Tredinnick
HttpResponse. Fixed #8765. Thanks to SmileyChris and semenov for working on this one. Backport of r13740 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13748 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-11[1.2.X] Fixed #13599 -- No longer embed hidden `<td>` elements in ↵Justin Bronn
`ChangeList` that cause improper rendering when `list_editable` is enabled; refactored `admin_changelist` tests. Thanks, skevy for bug report and patch. Backport of r13744 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Fixed a test so that it actually tests what it's supposed to test.Luke Plant
Previously it passed whether or not the view was 'csrf_exempt'ed. Backport of [13735] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13736 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Fixed #14235 - UnicodeDecodeError in CSRF middlewareLuke Plant
Thanks to jbg for the report. This changeset essentially backs out [13698] in favour of a method that sanitizes the token rather than escaping it. Backport of [13732] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13733 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Fixed #13095 -- `formfield_callback` keyword argument is now more ↵Justin Bronn
sane and works with widgets defined in `ModelForm.Meta.widgets`. Thanks, hvdklauw for bug report, vung for initial patch, and carljm for review. Backport of r13730 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Fixed #13799, a test failure on Postgres. Thanks, Alex. Karen Tracey
r13400 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13727 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Converted doctest to unittest. Patch by Alex Gaynor.Jannis Leidel
Backport from trunk (r13725). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13726 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Pass commit=False to loaddata in tests, which will keep the DB ↵Karen Tracey
connection open. Closing the connection has the side-effect on some DBs (Postgres, MySQL/InnoDB) of rolling back the transaction that was in progress, causing these tests to fail. r13717 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Fixed #11158 - get_image_dimensions very slow/incorrect after 1 callLuke Plant
Thanks to kua for the report, and to kua, SmileyChris and SAn for the patch Backport of [13715] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Fixed #14246: Modified aggregation_regress tests so that they will ↵Karen Tracey
pass on a variety (sqlite, Postgres, MySQL/MyISAM) of DBs. r13712 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Fixed some of the problems with aggregation_regress tests on higher ↵Karen Tracey
levles of Postgres. Refs #14246. r13709 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Fixed #14247 - 'forms' test failure in 1.2.XLuke Plant
Thanks to ramiro/pmclanaham for the report and analysis. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-09[1.2.X] Patch CSRF-protection system to deal with reported security issue. ↵James Bennett
Announcement and details to follow. Backport of [13698] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-07[1.2.X] Fixed #13081 - Admin actions lose get-parameters in changelist viewLuke Plant
Thanks to joh for report and to SmileyChris for patch. Backport of [13696] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-07[1.2.X] Fixed #13414 - QuerySet API ref wrong sql equivalent in __year ↵Luke Plant
lookup example Thanks to idle for report and patch Backport of [13690] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13693 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-31[1.2.X] Fixed #14199 -- Added a missing table creation statement in the db ↵Russell Keith-Magee
cache backend cull implementation, and added tests for cache culling. Thanks to Tim for the report. Backport of r13678 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13679 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-30[1.2.X] Fixed #13798 -- Added connection argument to the connection_created ↵Russell Keith-Magee
signal. Thanks to liangent for the report, and Alex Gaynor for the patch. Backport of r13672 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13674 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-27[1.2.X] Fixed #14116 -- Added a flag to enable CSRF checks in the test ↵Russell Keith-Magee
client. Thanks to jon@licq.org for the suggestion. Backport of r13640 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13642 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-24[1.2.X] Fixed #14159 -- Corrected more potential uses of relative paths in ↵Russell Keith-Magee
tests. Thanks to Alex Gaynor for the patch. Backport of r13636 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-23[1.2.X] Fixed #14155 -- Refactored another doctest suite and call to flush. ↵Russell Keith-Magee
Thanks to Alex Gaynor for the patch. Backport of r13622 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13623 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-21[1.2.X] Fixed #13140 -- Ensure that request headers are preserved through ↵Russell Keith-Magee
redirect chains in the test client. Thanks to David Novakovic for the report. Backport of r13620 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13621 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-21[1.2.X] Fixed #14148 -- Ensure the admin_script tests always use an absolute ↵Russell Keith-Magee
path; PyPy (and sometimes CPython) return relative paths for __file__. Thanks to Alex Gaynor for the report and patch. Backport of r13618 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-20[1.2.X] Fixed #12574 -- Removed an unnecessary exception catch from the ↵Russell Keith-Magee
system runtest script, which could hide failing tests. Thanks to CarlFK for the report, and Ramiro Morales for the polish. Backport of r13616 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13617 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-20[1.2.X] Fixed #13895 -- Refactored aggregation_regress doctests. Thanks to ↵Russell Keith-Magee
Alex Gaynor for the patch. Backport of r13614 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-20[1.2.X] Fixed #14068 -- Corrected error handling in loaddata when an ↵Russell Keith-Magee
allow_syncdb method is defined on the router. Thanks to Xavier Ordoquy for the report. Backport of r13612 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-19[1.2.X] Fixed #14123 -- Made AdminDocs tests optional, based on the ↵Russell Keith-Magee
availability of docutils. Thanks to PaulM for the original report, and Łukasz Rekucki for narrowing down the cause. Backport of r13606 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13607 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-17[1.2.X] Fixed #14102 -- Ensure that fields that have been excluded from a ↵Russell Keith-Magee
form aren't included in the unique_for_* checks, either. Thanks to Travis Cline for the report and fix. Backport of r13598 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13599 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-14[1.2.X] Fixed #13796 -- Ensure that builtin tags and filters are included in ↵Russell Keith-Magee
admin documentation views. Backport of r13588 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13589 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-14[1.2.X] Fixed #13679, #13231, #7287 -- Ensured that models that have ↵Russell Keith-Magee
ForeignKeys/ManyToManyField can use a a callable default that returns a model instance/queryset. #13679 was a regression in behavior; the other two tickets are pleasant side effects. Thanks to 3point2 for the report. Backport of r13577 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06[1.2.X] Fixed #11159 -- Added mimetype detection to the test client for file ↵Russell Keith-Magee
uploads. Thanks to notanumber for the report and patch, and lomin for the test case. Backport of r13517 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06[1.2.X] Added __init__.py file that was left out of [13505].Russell Keith-Magee
Backport of r13507 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06[1.2.X] Fixed #13495 -- Refactored the localflavor test directory to provide ↵Russell Keith-Magee
the placeholder structure for other flavors. Thanks to chronos for the report and patch. Backport of r13505 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06[1.2.X] Fixed #14014 -- Ensure that the "save and add another" button for ↵Russell Keith-Magee
users actually does what it says. Thanks to Ramiro for the report. Backport of r13503 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06[1.2.X] Fixed #14012 -- Corrected the handling of the create user popup ↵Russell Keith-Magee
dialog in the admin. Thanks to gk@lka.hu for the report, and Ramiro Morales for the patch. Backport of r13051 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06[1.2.X] Fixed #14027 -- Ensure that reverse() raises an exception when you ↵Russell Keith-Magee
try to reverse None. Thanks to Alex for the report and patch. Backport of r13499 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13500 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-05[1.2.X] Fixed #13621 -- Corrected the handling of input formats on date/time ↵Russell Keith-Magee
form fields. Thanks to bufke for the report, zerok and jacmkno for their work on the patch, and Karen, Jannis and Alex for feedback. Backport of r13484 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-05[1.2.X] Fixed #13732 -- Fixed minor typo in docstring. Thanks to schinckel ↵Russell Keith-Magee
for the report. Backport of r13483 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-05[1.2.X] Fixed #13613 -- Ensure that forms.URLField and forms.EmailField are ↵Russell Keith-Magee
used on a modelform. This ensures that fields are URL and Email fields are cleaned consistently when included on model forms. Thanks to amadison for the report. Backport of r13475 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-03[1.2.X] Fixed #11377: the template join filter now correctly escapes the ↵Jacob Kaplan-Moss
joiner, too. Thanks, Stephen Kelly. Backport of [13464] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-03[1.2.X] Fixed #11376: added some extra tests for autoescaping subtleties.Jacob Kaplan-Moss
Thanks, Stephen Kelly. Backport of [13461] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-03[1.2.X] Fixed #11288: added some tests for the handling of number-like ↵Jacob Kaplan-Moss
variables in templates. Thanks, Stephen Kelly. Backport of [13460] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-10Refs #8901 -- Reverted r13328 because the patch imposes a minimum version ↵Russell Keith-Magee
requirement of Postgres 8.0; we can't impose that on Django 1.2, so we need to wait until the 1.3 is branched before we can apply this change. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-08Fixed #13716 - the CSRF get_token function stopped working for views with ↵Luke Plant
csrf_view_exempt This was a regression caused by the the CSRF changes in 1.2. Thanks to edevil for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-07Fixed #8901 -- Corrected the PostgreSQL sequence reset code when field ↵Russell Keith-Magee
identifiers exceed the maximum identifier length. Thanks to adam@zuerchertech.com for the report, and Matt Hoskins for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-07Fixed #13657: Moved global declaration before assignments to avoid a syntax ↵Karen Tracey
warning. Thanks Alex. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-07Fixed #13700 -- Converted m2m_through_regress tests to unittests, removing ↵Russell Keith-Magee
another flush call. Thanks to Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-05Fixed #13698 -- Removed trailing whitespace from ↵Russell Keith-Magee
regressiontests/utils/timesince. Officially, I'm doing this because trailing whitespace is bad, but apparently it also causes test failures for some people (for reasons we can't narrow down), so there's a double win. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-05Corrected pre-Python 2.6 syntax incompatibility from r13319. Thanks to Karen ↵Russell Keith-Magee
Tracey for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-05Fixed #13697 -- Modified multiple_database test to avoid a failure observed ↵Russell Keith-Magee
under Python 2.6. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-05Migrated multiple_database tests to use new stdout argument on management ↵Russell Keith-Magee
commands, rather than monkeypatching stdout. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13320 bcc190cf-cafb-0310-a4f2-bffc1f526a37