summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2008-11-16[1.0.X] Fixed #9608: Ensured a Model's default repr() is printable even if ↵Karen Tracey
its unicode method raises a Unicode error. r9475 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-16[1.0.X] Fixed #6052 -- Worked around a bug in MySQLdb with regards to handlingMalcolm Tredinnick
SafeUnicode (handle SafeString similarly, just to be safe). Based on a patch from sfllaw. Backport of r9467 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-16[1.0.X] Fixed #3501 -- Fixed date filtering in querysets for nullable date ↵Malcolm Tredinnick
fields. Only affects SQLite. Backport of r9466 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9468 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-15[1.0.X] Fixed #9258 -- Use _default_manager in ↵Brian Rosner
ForeignKeyRawIdWidget.label_for_value. Thanks nullie for the patch. Backport of r9444 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-15[1.0.X] Fixed #6948 -- The join filter was escaping the literal valueMalcolm Tredinnick
that was passed in for the connector. This was contrary to what the documentation for autoescaping said and to what every other filter does with literal strings as arguments. This is backwards incompatible for the situation of the literal string containing one of the five special HTML characters: if you were writing {{ foo|join:"&" }}, you now have to write {{ foo| join:"&" }}. Previous behaviour was, as noted, a bug and contrary to what was documented and expected. Backport of r9442 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-14[1.0.X] Fixed #9592 -- Create data for the generic_inline_admin test during ↵Karen Tracey
setup instead of via a fixutre since it uses a content type id which will vary depending on what other tests have been run. r9438 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9439 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-13[1.0.X] Fixed #9498 -- Handle a formset correctly when the foreign key is ↵Brian Rosner
not available (for now). This case pops up with generic foreign key inlines after [9297]. Added tests to handle future regressions with generic foreign key inlines in the admin. Thanks markus and danielr for patches. Backport of [9412] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-12[1.0.X] Fixed #5079 -- Avoid converting Decimals to floats during save to ↵Karen Tracey
the database. [9394] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-10[1.0.X] Fixed #7064: Made DemicmalField validation support max_digits equal ↵Karen Tracey
to decimal_places. r9387 and r9388 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-10[1.0.X] Fixed #6035 -- Gave the SplitDateTimeField the proper default ↵Karen Tracey
widget. Thanks dtulig. r9385 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9386 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-10[1.0.X] Fixed #8910 -- Added force_unicode during admin log message creation ↵Karen Tracey
to avoid triggering a Python 2.3 bug. Thanks for the report joshg and patch nfg. [9383] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-09[1.0.X] Fixed #9514 -- Made admin change_form template correctly ↵Karen Tracey
recognize/report when a form has only a single error. [9371] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9372 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-08[1.0.X] Fixed #5748 -- Made floatformat filter round properly on all ↵Karen Tracey
platforms and handle NaN input correctly on Windows. Also added tests for these cases. Thanks for the report and initial patch to SmileyChris and PJCrosier. [9369] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-06[1.0.X] Fixed #6160, #9111 -- Consistently apply conditional_escape to form ↵Karen Tracey
errors and labels when outputing them as HTML. [9365] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-06[1.0.X] Fixed #9011 -- Corrected handling of fixture files that contain ↵Russell Keith-Magee
errors to correctly report the broken fixture name. Thanks to jlrivitti@gmail.com for the report and initial patch. Merge of [9357] and [9358] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-05[1.0.X] Fixed #9218 -- Simplified the fix from #9039 and added tests to ↵Karen Tracey
ensure this case doesn't break again (and that the simplification didn't break anything). [9341] from trunk. Also updated svnmerge metadata. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-04[1.0.X] Fixed #9418 -- When saving a model form, defer saving of file-type ↵Karen Tracey
fields until after other fields, so that callable upload_to methods can use data from the other fields. Thanks to Bernd Schlapsi for the report and initial patch. [9334] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-01[1.0.X] Fixed #9494 -- Ensure the foreign key in an inline formset is always ↵Brian Rosner
present on the forms. Thanks Fugazi for the report. Backport of r9326 from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9327 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-31[1.0.X] Fixed #8882 -- When a foreign key is among the unique_together ↵Brian Rosner
fields in an inline formset properly handle it. Backport of r9297 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-28[0.5.X] Fixed #9462 -- Set the instance in an inline formset correctly so ↵Brian Rosner
that None does not get passed through to the queryset. Thanks tobias and copelco for the ticket. Backport of r9293 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-28[1.0.X] Fixed #8966 -- Changed is_safe for length_is filter to False, since ↵Karen Tracey
its return value is a boolean, not a string. Thanks Thomas Steinacher, carljm, and SmileyChris. Backport of r9291 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-28[1.0.X] Fixed #9039 take 2 -- Modified the new tests added in [9240] so they ↵Karen Tracey
pass on Oracle. Backport of [9288] from trunk, also updated svnmerge.py metadata. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-24[1.0.X] Fixed #7179 -- Changed breadcrumbs on the add page so that a link to ↵Karen Tracey
the change view is not included when the user doesn't have permission for that view. Also added tests to ensure the link is not there when it shouldn't be, and there when it should be. Thanks for the report & patch alen__ribic. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-24[1.0.X] Fixed #9411 -- Changed the test from r9081 to be more robust across ↵Karen Tracey
different database backends. Backport of [9254] from trunk (I neglected to mention in the ticket this affected 1.0.X branch). Also updated svnmerge metadata; all eligible fixes have been backported and all others blocked. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-24[1.0.X] Backed out r9250. I committed this to the branch by mistake; there's noMalcolm Tredinnick
bug in functionality fixed by this. Refs #9383. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-24[1.0.X] Fixed #9406 -- Ensure that each database column is only representedMalcolm Tredinnick
once in the "ORDER BY" clause of an SQL statement. Backport of r9251 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-24[1.0.X] Fixed #9383 -- Don't open a network connection for sending email ifMalcolm Tredinnick
there's nothing to send. Saves a bit of time when, for example, processing 500-error emails with no ADMINs configured. Based on a patch from Jesse Young. Backport of r9248 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-22[1.0.X] Fixed #9252 -- Moved the try/except protecting against incorrect ↵Karen Tracey
lookup params to where the error is now raised, and added a test for this case. Backport of [9245] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-21[1.0.X] Fixed #3096 -- Make admin list_filters respect limit_choices_to.Karen Tracey
Backport of [9241] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-21[1.0.X] Fixed #9039 -- Don't perform unique checks on NULL values, since ↵Karen Tracey
NULL != NULL in SQL. Backport of [9239] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-11[1.0.X] Fixed .distinct() not working with slicing in Oracle, due to theMalcolm Tredinnick
row numbers necessarily being distinct. Backport of r9221 from trunk (since Ian doesn't have commit privileges at the moment). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-10[1.0.X] Yet more file storage testing cleanup for the sake of buildbots; ↵Jacob Kaplan-Moss
this should be the last of it, I hope. Backport of r9226 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-10[1.0.X] More be-nice-to-the-buildbot: be better about cleaning up files ↵Jacob Kaplan-Moss
created by the cache/session tests. Backport of r9924 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-10[1.0.X] Be nice to buildbots: switched `modeltests/files` to use a proper ↵Jacob Kaplan-Moss
isolated directory for file storage Backport of r9222 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08[1.0.X] Fixed #9053 -- Allowed for sorting of callable and ModelAdmin ↵Karen Tracey
methods specified in list_display (added in r8352). Previously attempting to sort on the former would raise an exception and the latter simply didn't sort. Also added tests for this function. Thanks rgl and jenan. Backport of [9211], also updated svnmerge.py metatdata. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9212 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08[1.0.X] Fixed #9319 -- Fixed a crash when using the same model field in multipleMalcolm Tredinnick
unique_together constraints. Backport of r9208 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08[1.0.X] A queryset that has had ordering removed (order_by()) can have orderingMalcolm Tredinnick
added again later (order_by('foo')). Or, at least, it can now. Thanks to Ilya Novoselov for diagnosing the problem here. Backport of r9206 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08[1.0.X] Fixed #6748 -- When printing the repr() of querysets, don't load orMalcolm Tredinnick
display more than 20 objects. This means that accidentally executing HugeStoryArchive.objects.all() at the interactive prompt (or in the debug template) won't try to load all 4,233,010 stories into memory and print them out. That would previously cause resource starvation and other "interesting" crashes. If you really, really want the previous behaviour (e.g. in a doctest that prints more than 20 items), display "list(qs)" instead of just "qs". Backport of r9202 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08[1.0.X] Applying a limit to a queryset that already had an upper limit of 0Malcolm Tredinnick
wasn't working properly. Backport of r9201 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08[1.0.X] The tests added in r9185 were altering the test environment in badMalcolm Tredinnick
ways. Fixed this with proper setUp() and tearDown() methods. Backport of r9200 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07[1.0.X] Fixed #9233 -- Allow date and message-id headers to be passed inMalcolm Tredinnick
manually in email messages. Previously we were creating duplicate headers, which was bad. Backport of r9197 from trunk. I'm calling this a bugfix, since the docs are unclear about which headers you can pass into an EmailMessage constructor. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9198 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07Reverted r9186 -- Committed to the wrong branch (it's a feature addition).Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07Fixed #5888 -- Added methods to the test client to support HEAD, PUT, DELETEMalcolm Tredinnick
and OPTIONS support. Thanks Scott Barr and Leah Culver. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07[1.0.X] Fixed #9199 -- We were erroneously only prepending "www" to the domainMalcolm Tredinnick
if we also needed to append a slash (when PREPEND_WWW=True). Based on a patch and tests from gonz. Thanks. Backport of r9184 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06[1.0.X] Added some better error reporting and path handling when creating ↵Malcolm Tredinnick
template paths. We now raise UnicodeDecodeError for non-UTF-8 bytestrings (thanks to Daniel Pope for diagnosing this was being swallowed by ValueError) and allow UTF-8 bytestrings as template directories. (The last bit is arguably a feature-add, but we allow UTF-8 bytestrings everywhere else, so I'm counting it as a bugfix.) Refs #8965. Backport of r9161 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05[1.0.X] Fixed #9259 -- Fixed a validation error for Spanish identity card ↵Malcolm Tredinnick
numbers. Patch from Marc Garcia. Backport of r9129 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05[1.0.X] Add internationalisation support to the comment templates. Fixed ↵Malcolm Tredinnick
#8868, #8905 Thanks to zgoda for a patch that did most of the internationalisation part. Backport of r9119 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05[1.0.x] Fixed #8803 -- Allow authenticated users without ↵Malcolm Tredinnick
first_name/last_name values set to post comments. Backport of r9118 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05[1.0.X] Altered a failing url template tag test to work more reliably.Malcolm Tredinnick
There's no guarantee about the order in which ambiguous patterns are resolved. The solution is "don't do that" and avoid ambiguity. This is a port of r9113 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-30[1.0.X] Fixed another case of reverse URL resolving that wasn't working.Malcolm Tredinnick
This is a similar situation to that fixed in r9087. We weren't merging multiple levels of include() calls together correctly. Backported from r9099 on trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9100 bcc190cf-cafb-0310-a4f2-bffc1f526a37