summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2011-02-04Fixed #13968 -- Fixed SelectDateWidget processing of an invalid date input ↵Ramiro Morales
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. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15416 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04Fixed #14046 -- Made {% include %} behave the same, regardless of whether ↵Russell Keith-Magee
the template included is named by variable or constant string. Thanks to defcube for the report, and George Karpenkov for the draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04Modified a few tests methods to make sure no leaks of activated locale or ↵Ramiro Morales
USE_I10N setting value happen between tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04Fixed #15181 -- Ensure that special characters are escaped when querying for ↵Russell Keith-Magee
the URL of an uploaded file. Thanks to e.generalov for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04Fixed #14824 -- Corrected the handling of formats when USE_L10N is disabled. ↵Russell Keith-Magee
Thanks to nullie for the report and initial patch, and to idle for the separate report with helpful debug info. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-03Fixed stability of data input/output L10N format modules priority order. ↵Ramiro Morales
Thanks tonnzor for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-02Fixed #15029 -- Moved to database backends the ability to decide if two ↵Ramiro Morales
DATABASES items are different when creating temporary databases for tests. hG: Enter commit message. Lines beginning with 'HG:' are removed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-01Fixed a few test docstrings and removed an unused import in staticfiles.Carl Meyer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-01Modified the test case from r15383 to avoid an output inconsistency with ↵Russell Keith-Magee
KeyError. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15387 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-01Fixed #15094 - Added check for forgetting trailing comma in STATICFILES_DIRS ↵Carl Meyer
tuple. Also reorganized staticfiles settings-checks for better consistency. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15386 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-01Fixed #15170 -- Skip the inspectdb test under MySQL/MyISAM, because it can't ↵Russell Keith-Magee
differentiate a foreign key from an integer. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-01Fixed #14972 -- Ensure that the HTML email logger always produces useful ↵Russell Keith-Magee
output, regardless of whether it has been given an exception or a request. Thanks to jamstooks for the report, and bpeschier for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-01Fixed #13283 -- Corrected CACHE_MIDDLEWARE_ANONYMOUS_ONLY's bad habit of ↵Carl Meyer
setting Vary: Cookie on all responses and destroying cache efficiency. Thanks to natrius for the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-30Fixed #14698 -- Ensure that module_has_sumodule doesn't mistake a cache miss ↵Russell Keith-Magee
for an existent package. Thanks to Łukasz Rekucki for the report and patch, and to shields for the test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15362 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-28Fixed #14880 - raw_id_fields in admin does not work when limit_choices_to ↵Luke Plant
dictionary has value=False Thanks to smallming for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-28Fixed #15103 - SuspiciousOperation with limit_choices_to and raw_id_fieldsLuke Plant
Thanks to natrius for the report. This patch also fixes some unicode bugs in affected code. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-27Fixed #15112 -- Ensure that IPv6 addresses are correctly displayed in the ↵Russell Keith-Magee
admin. Thanks to oxy for the report, and Łukasz Rekucki for the test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-27Fixed #14818 -- Added explicit tests for the way that the cycle tag handles ↵Russell Keith-Magee
escaping. Thanks to steveire. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-27Fixed #15041 -- Added tests for the spaceless tag interacting with escaping. ↵Russell Keith-Magee
Thanks to steveire. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-26Fixed #15161 - Corrected handling of ManyToManyField with through table ↵Carl Meyer
using to_field on its ForeignKeys. Thanks to adehnert for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-26Fixed #15157 -- Modified evaluation of literals surrounded by _(' and ')' in ↵Ramiro Morales
templates to be evaluated at render time instead of at compile time by using ugettext_lazy. Thanks Jonathan S for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15327 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-26Made a transaction test optional unless transactions are supported.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-26Fixed #13159 -- properly quote aggregates in order_by.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15318 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-25Fixed #14938 - Fixed save-as-new on inline formset with new forms.Carl Meyer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-25Fixed #11319 - Added lookup support for ForeignKey.to_field. Also reverted ↵Carl Meyer
no-longer-needed model formsets workaround for lack of such support from r10756. Thanks Russell and Alex for review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24Rationalised CompatCookie/SimpleCookie into single SimpleCookie class with ↵Luke Plant
all fixes. Since upstream Python has fixed the encoding bug (see http://bugs.python.org/issue9824), we don't want a separate class for this bug fix, or several layers for the different fixes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24Simplify the tests for [15296].Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24Fixed 14796 -- Modified order of operations performed on field names by the ↵Ramiro Morales
inspectdb command so it doesn't generates model fields with names equal to Python keywords. Thanks pappjm at gmail dot com for the report and mmcnickle for the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24Fixed #15012 -- Added post-rendering callbacks to TemplateResponse so that ↵Russell Keith-Magee
decorators (in particular, the cache decorator) can defer processing until after rendering has occurred. Thanks to Joshua Ginsberg for the draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24Fixed #14240 -- Enabled localization for the filesize filter. Thanks to ↵Russell Keith-Magee
David Danier for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24Fixed #14982 -- Ensure that EMPTY_CHANGELIST_VALUE is honored for nullable ↵Russell Keith-Magee
foreign keys. Thanks to marcob for the report and fix, and to sontek for the test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24Fixed #15144 -- Corrected some problems with the Cache middleware when used ↵Russell Keith-Magee
with multiple cache settings. Thanks to Jim Dalton for the report, and to Jim and Joshua Ginsberg for the work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15285 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-21Fixed a few translation related tests:Jannis Leidel
* Extended the admin i18n view to also take the admin translation catalogues into account. * Use a translation string from the core translations to test LOCALE_PATHS. * Fixed Russian translation of singular forms. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-21Fixed #14753 -- Fixed the test client to not raise an AssertionError when ↵Ramiro Morales
request.raw_post_data is accessed from a view it has fetched with GET. Thanks zimnyx for the report and ojii for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15254 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-20Fixed #15122 -- Restored reporting of the template files tried in the ↵Ramiro Morales
texmplate loader post mortem section of the TemplateDoesNotExit 500 error debug page. Thanks rdrey for reporting this regression. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-20Fixed #14774 -- the test client and assertNumQueries didn't work well ↵Alex Gaynor
together. Thanks to Jonas Obrist for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-20Poured a little more perfectionism into the delete-confirmation templates.Carl Meyer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-20Fixed #14672 - Added admin handling for on_delete=PROTECT. Thanks to jtiai ↵Carl Meyer
for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-19Fixed #14896 -- Ensured that ↵Carl Meyer
_meta.get_all_related_objects(include_hidden=True) also works correctly with model inheritance. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-19Fixed a regression in the test suite from [15236].Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-18Refs #14661 -- Clarified the handling of initial data injected via custom SQL.Russell Keith-Magee
This is BACKWARDS INCOMPATIBLE CHANGE for anyone relying on SQL-injected initial data in a test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-18Refs #14661 -- Corrected (well... hacked around) a test failure under ↵Russell Keith-Magee
MySQL/MyISAM with the queries regression test. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-17Fixed #14468 -- Extended the list of content types that the test client ↵Jannis Leidel
could guess when handling zip files. Thanks, Russ and emulbreh. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-17Refactor all uses of thread locals to be more consistant and sane.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-17Corrected an aggregation test failure under PostgreSQL, introduced by ↵Russell Keith-Magee
r15223. Thanks to Alex for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-16Fixed #15083 -- Corrected the order of TemplateResponse middleware handling, ↵Russell Keith-Magee
ensuring that custom URLConfs are valid, and that ResponseMiddleware is invoked if the TemplateResponseMiddleware causes errors. Thanks to Sayane for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-16Fixed #14707 -- Relax the protections on aggregate naming collisions when a ↵Russell Keith-Magee
ValuesQuerySet removes the colliding name. Thanks to Andy McKay for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-16Fixed #15018 -- Corrected the handling of LimitedStream under one edge case ↵Russell Keith-Magee
involving size restricted buffers and newlines. Thanks to xjdrew for the report, and aaugustin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-15Stopped staticfiles app from requiring a models module when looking for ↵Jannis Leidel
static files. Also removed a bit of code smell in the prefix handling by saving it in the source file storage. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-15Fixed #15048 -- Modified a test case to avoid a known bug in Python 2.4's ↵Russell Keith-Magee
time library. Thanks to Łukasz Rekucki for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15216 bcc190cf-cafb-0310-a4f2-bffc1f526a37