summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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
2010-06-05Fixed #13636 -- Migrated fixtures tests to use unittests, eliminating ↵Russell Keith-Magee
another set of expensive flush calls. Thanks to Eric Holscher for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-28Fixed #13572: copies of QueryDicts now have their encoding set correctly.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-28Converted httpwrappers tests to unittest.Jacob Kaplan-Moss
We have always been at war with doctests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-28Fixed #13634 -- Migrated aggregation tests to use unittest. This removes a ↵Russell Keith-Magee
flush, which speeds up the tests overall. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-28Fixed #13638 -- Refactored the serializers_regress tests to avoid the use of ↵Russell Keith-Magee
flush, and make better use of the transactional capabilities of django.test.TestCase. Thanks to Alex Gaynor for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-23Fixed #13592 -- Make sure the SelectDateWidget works with dates before 1900 ↵Jannis Leidel
when localization is enabled. Thanks for the report and patch, magnus. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13301 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-21Fixed #13560 -- Fixed localization of widgets.Jannis Leidel
Particularly this fixes the SplitDateTimeField and the AdminDateWidget by localizating the widget's value in its render method instead of the form field. Thanks to David Danier for the report and Russell for help with the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-21Fixed #13573 -- Corrected problem with template caching when template ↵Russell Keith-Magee
directories are provided. Thanks to lamby for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-16Fixed #13547 -- Made sure the ISO 8601 date formatting introduced in r12058 ↵Jannis Leidel
uses "T" as the separator between the date and the time value to increase real world usefulness. While the ISO standard permits the use of a space instead of "T" for readability, it does have an impact on standards like HTML5 which rely on specific rules made in RFC 3339. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-13Fixed #13514 -- Corrected the process of loading multiple javascript ↵Russell Keith-Magee
translation catalogs. Thanks to jtiai for the report, to Ramiro Morales for working out the test case, and to Ramiro and Jannis for their help on the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-12Fixed #13524 -- Added backwards compatibility and feature notes regarding ↵Russell Keith-Magee
admin inlines and formsets. Thanks to Ramiro Morales and Gabriel Hurley. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-11Fixed #13513 -- Ensured that queries collecting deleted objects are issued ↵Russell Keith-Magee
on the right database, especially when dealing with m2m intermediate tables. Thanks to gavoja for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13232 bcc190cf-cafb-0310-a4f2-bffc1f526a37