summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2011-02-09[1.2.X] Fixed security issue in AdminFileWidget. Disclosure and release ↵Carl Meyer
forthcoming. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-09[1.2.X] Fixed a security issue in the CSRF componenent. Disclosure and new ↵Alex Gaynor
release forthcoming. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-09[1.2.X] Ensure that L10N formats aren't cached between tests.Russell Keith-Magee
Backport of r15461 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-09Corrected merge failure from r15455.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08[1.2.X] Fixed #13815 -- Ensure that reverse exclude lookups on nullable ↵Russell Keith-Magee
foreign keys exclude null values. Thanks to bpeschier for the report and patch. Backport of r15458 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08[1.2.X] Fixed #10573 -- Corrected autofocus problem in admin when the first ↵Russell Keith-Magee
widget displayed is a multiwidget. Thanks to rduffield for the report, and to Ramiro and Julien Phalip for the patch. Backport of r15452 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15456 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08[1.2.X] Fixed #15234 -- Ensure that years in a date heirarchy don't use ↵Russell Keith-Magee
commas for thousand separators, regardless of the value of USE_THOUSAND_SEPARATOR. Thanks to Julien Phalip for the report and patch. Backport of r15451 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08[1.2.X] Fixed #15175 -- Ensured that Chliean RUT checksum letters aren't ↵Russell Keith-Magee
case sensitive. Thanks to rvimer for the report, and to ersame for the patch. H: Enter commit message. Lines beginning with 'HG:' are removed. Backport of r15450 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15454 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-02-05[1.2.X] Fixed #15226 - Made SelectDateWidget render the label tag associated ↵Ramiro Morales
with the correct dropdown sub-widget when USE_L10N is active and non-English locale is in use. Backport of [15427] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05[1.2.X] Fixed #15167 -- Ensure that non-form errors are always part of an ↵Russell Keith-Magee
ErrorList. Thanks to Harm Geerts for the report and patch. Backport of r15424 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15425 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05[1.2.X] Fixed #13968 -- Fixed SelectDateWidget processing of an invalid date ↵Ramiro Morales
input value when USE_L10N is on, for consistency with its behavior when USE_L10N=False (now the form field reports the validation error in both cases). Thanks mitar for the report. Backport of [15416] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04[1.2.X] Fixed #14046 -- Made {% include %} behave the same, regardless of ↵Russell Keith-Magee
whether the template included is named by variable or constant string. Thanks to defcube for the report, and George Karpenkov for the draft patch. Backport of r15413 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04[1.2.X] Modified a few tests methods to make sure no leaks of activated ↵Ramiro Morales
locale or USE_L10N setting value happen between tests. Backport of [15411] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04[1.2.X] Fixed #15181 -- Ensure that special characters are escaped when ↵Russell Keith-Magee
querying for the URL of an uploaded file. Thanks to e.generalov for the report and patch. Backport of r15409 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04[1.2.X] Fixed #14824 -- Corrected the handling of formats when USE_L10N is ↵Russell Keith-Magee
disabled. Thanks to nullie for the report and initial patch, and to idle for the separate report with helpful debug info. Backport of r15404 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-03[1.2.X] Fixed #15129 -- Fixed stability of data input/output L10N format ↵Ramiro Morales
modules priority order. Thanks tonnzor for the report and fix. Backport of [15402] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-02[1.2.X] Fixed #15029 -- Moved to database backends the ability to decide if ↵Ramiro Morales
two DATABASES items are different when creating temporary databases for tests. Backport of [15392] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-01[1.2.X] Fixed #13283 -- Corrected CACHE_MIDDLEWARE_ANONYMOUS_ONLY's bad ↵Carl Meyer
habit of setting Vary: Cookie on all responses and destroying cache efficiency. Thanks to natrius for the fix. Backport of r15381 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-30[1.2.X] Fixed #14698 -- Ensure that module_has_sumodule doesn't mistake a ↵Russell Keith-Magee
cache miss for an existent package. Thanks to Łukasz Rekucki for the report and patch, and to shields for the test case. Backport of r15362 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-28[1.2.X] Fixed #14880 - raw_id_fields in admin does not work when ↵Luke Plant
limit_choices_to dictionary has value=False Thanks to smallming for the report. Backport of [15348] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-28[1.2.X] Fixed #15103 - SuspiciousOperation with limit_choices_to and ↵Luke Plant
raw_id_fields Thanks to natrius for the report. This patch also fixes some unicode bugs in affected code. Backport of [15347] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15349 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-27[1.2.X] Fixed #14818 -- Added explicit tests for the way that the cycle tag ↵Russell Keith-Magee
handles escaping. Thanks to steveire. Backport of r15335 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-27[1.2.X] Fixed #15041 -- Added tests for the spaceless tag interacting with ↵Russell Keith-Magee
escaping. Thanks to steveire. Backport of r15334 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-26[1.2.X] Fixed #15161 - Corrected handling of ManyToManyField with through ↵Carl Meyer
table using to_field on its ForeignKeys. Thanks to adehnert for the report. Backport of r15330 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-26[1.2.X] Fixed #15157 -- Modified evaluation of literals surrounded by '_(' ↵Ramiro Morales
and ')' in templates to be done at render time instead of at compile time by using ugettext_lazy. Thanks Jonathan S for the report. Backport of [15327] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-26[1.2.X] Made a transaction test optional unless transactions are supported.Russell Keith-Magee
Backport of r15325 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15326 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-26[1.2.X] Fixed #13159 -- properly quote aggregates in order_by. Backport of ↵Alex Gaynor
[15318]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-25[1.2.X] Fixed #14938 - Fixed save-as-new on inline formset with new forms.Carl Meyer
Backport of r15306 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15307 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-25[1.2.X] Fixed #14796 -- Modified order of operations performed on field ↵Ramiro Morales
names by the inspectdb command so it doesn't generates model fields with names equal to Python keywords. Thanks pappjm at gmail dot com for the report, mmcnickle for the fix and Alex for simplifying the tests. Backport of r15296 and r15297 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15301 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24[1.2.X] Fixed #14240 -- Enabled localization for the filesize filter. Thanks ↵Russell Keith-Magee
to David Danier for the report and patch. Backport of r15290 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24[1.2.X] Fixed #14982 -- Ensure that EMPTY_CHANGELIST_VALUE is honored for ↵Russell Keith-Magee
nullable foreign keys. Thanks to marcob for the report and fix, and to sontek for the test case. Backport of r15286 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-21[1.2.X] Fixed a regression in the test suite from [15236]. Backport of r15244.Ramiro Morales
Also, changed an asertion not supported by unittest. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15255 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-20[1.2.X] Fixed #15122 -- Restored reporting of the template files tried in ↵Ramiro Morales
the texmplate loader post mortem section of the TemplateDoesNotExit 500 error debug page. Thanks rdrey for reporting this regression. Backport of [15252] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-18[1.2.X] Refs #14661 -- Clarified the handling of initial data injected via ↵Russell Keith-Magee
custom SQL. This is BACKWARDS INCOMPATIBLE CHANGE for anyone relying on SQL-injected initial data in a test case. Backport of r15239 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-18[1.2.X] Refs #14661 -- Corrected (well... hacked around) a test failure ↵Russell Keith-Magee
under MySQL/MyISAM with the queries regression test. Backport of r15238 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-18[1.2.X] Fixed #14468 -- Extended the list of content types that the test ↵Jannis Leidel
client could guess when handling zip files. Thanks, Russ and emulbreh. Backport from trunk (r15236). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-17[1.2.X] Corrected an aggregation test failure under PostgreSQL, introduced ↵Russell Keith-Magee
by r15223. Thanks to Alex for the report. Backport of r15230 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-16[1.2.X] Fixed #14707 -- Relax the protections on aggregate naming collisions ↵Russell Keith-Magee
when a ValuesQuerySet removes the colliding name. Thanks to Andy McKay for the report. Backport of r15223 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-15[1.2.X] Fixed #15042 -- Ensured that email addresses without a domain can ↵Russell Keith-Magee
still be mail recipients. Patch also improves the IDN handling introduced by r15006, and refactors the test suite to ensure even feature coverage. Thanks to net147 for the report, and to Łukasz Rekucki for the awesome patch. Backport of r15211 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-14[1.2.X] Fixed #14948 -- Fixed a couple of cases where invalid model classes ↵Ramiro Morales
were passed to the database router when collecting reverse foreign key and many to many relationships. Thanks shell_dweller for the report and Harm Geerts for the patch. This also enhances tests added in r15186. Code in SVN trunk doesn't suffer from this problem because it was refactored in r14507. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-14[1.2.X] Enhanced tests for r14857 added in r15185. Refs #14870. Thanks Harm ↵Ramiro Morales
Geerts. Backport of [15201] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13[1.2.X] Fixed #13631 -- Made sure that max_length and min_length are ↵Russell Keith-Magee
retained as attributes on form fields. Thanks to mila for the report. Backport of r15194 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13[1.2.X] Fixed #2986 -- Made the JavaScript code that drives related model ↵Ramiro Morales
instance addition in a popup window handle a model representation containing new lines. Also, moved the escapejs functionality to django.utils.html so it can be used from Python code. Thanks andrewwatts for the patch. Backport of [15131] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13[1.2.X] Fixed #14176 -- Added forwards compatibility to the legacy ↵Russell Keith-Magee
syndication feed view. This allows class-based feeds to be deployed using the old-style feed view, as long as the feed requires no arguments (i.e., get_object returns None). Thanks to psychcf for the report, cwhaines for the investigation, and Andrew Godwin for the assist. Backport of r15189 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13[1.2.X] Fixed #13668 -- Corrected database router methods invocation for ↵Ramiro Morales
ManyToMany fields without through models. Thanks craig.kimerer for the report and David Gouldin for the fix. This also adds tests for r14857. Backport of [15185] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15186 bcc190cf-cafb-0310-a4f2-bffc1f526a37