summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2009-05-02Fixed #9609 -- Modified the clean method of(Null)Boolean field to accept '1' ↵Russell Keith-Magee
and '0' as valid inputs. Thanks to psagers for the patch. This is required to support the use of non-default form widgets such as RadioSelect when the data comes from MySQL, which uses 1/0 to represent booleans. Merge of r10660 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10662 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-02[1.0.X] Fixed #10349 -- Modified ManyToManyFields to allow initial form ↵Russell Keith-Magee
values to be callables. Thanks to fas for the report and patch. Merge of r10652 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10653 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-30[1.0.X] Fixed #10134 -- Added unique_for_[date|day|month|year] validation to ↵Russell Keith-Magee
ModelForm handling. Thanks to Alex Gaynor for the patch. Merge of r10646 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-28[1.0.X] Fixed #10082 -- Modified BaseFormSet so that ordering checks work ↵Russell Keith-Magee
when the formset is empty. Thanks to Petr Marhoun for the report and test case, and bmathieu for the fix. Merge of r10643 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-22[1.0.X] Fixed the tests from [9438] to work consistantly across databases. ↵Jacob Kaplan-Moss
In particular, it was failing on newer versions of PostgreSQL after [10586]. Backport of [10626] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10627 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-22[1.0.X] Fixed #10208: `ModelAdmin` now respects the `exclude` and `field` ↵Jacob Kaplan-Moss
atributes of custom `ModelForm`s. Thanks, Alex Gaynor. Backport of r10619 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-21[1.0.X] Fixed #9651: fixed save_as with inline forms. Thanks, kmike and ↵Karen Tracey
Mnewman. Backport of r10353 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10612 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-21[1.0.X] Added a test from Jamie Gennis to ensure #9848 doesn't reappear.Karen Tracey
The bug itself was fixed at some point in the past months (there have been a few improvements to update() recently). Fixed #9848. (Merge of r10528 from trunk. Per comment in #9848 the fix was in r9967, which was backported in r9968, thus it seems right to backport the new test as well.) git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10607 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-18[1.0.X] Fixed #10002: inline file uploads now correctly display prior data. ↵Jacob Kaplan-Moss
Thanks, dgouldin. Backport of r10588 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10589 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-18[1.0.X] Fixed #9122: generic inline formsets now respect exclude and ↵Jacob Kaplan-Moss
max_num. Thanks, Alex Robbins. Backport of [10586] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10587 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-18[1.0.X] Fixed #9124: fixed `SelectDateWidget` with `required=False`. Thanks, ↵Jacob Kaplan-Moss
Bernd Schlapsi. Backport of [10584] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10585 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-18[1.0.X\ Fixed #10156: `ModelMultipleChoiceField.clean` now does a single ↵Jacob Kaplan-Moss
query instead of O(N). Thanks, Alex Gaynor. Also, I ported a few more doctests to unittests. Backport of r10582 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10583 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-17[1.0.X] Fixed introspection test case which caused "ORA-00972: identifier is ↵Matt Boersma
too long" errors against Oracle. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-16[1.0.X] Fixed #9948 -- Corrected URLField validation to match RFC1035 (URL ↵Russell Keith-Magee
analog of #9890). Thanks to kratorius for the report and fix. Merge of r10574 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10577 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-16[1.0.X] Fixed #9890 -- Modified the regex validation for email addresses to ↵Russell Keith-Magee
match RFC822/1035. Thanks to ozgur for the report, and kratorius for the patch. Merge of 10573 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13[1.0.X] Fixed #10458 -- Corrected the `next_month` and `previous_month` ↵Russell Keith-Magee
context variables provided with the generic month_archive view. The value returned now matches the docstring and the generic views documentation. Thanks to fperetti for the report and initial patch. Merge of r10556 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13[1.0.X] Fixed #9522 -- Modified handling of values in base serializer so ↵Russell Keith-Magee
that field subclasses can define their own value_to_string() method for serialization. Thanks to Alex Koshelev for the report and initial patch. Merge of r10554 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10555 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13[1.0.X] Fixed #9804 -- Corrected the introspection of sequence names. This ↵Russell Keith-Magee
was causing problems when flushing tables that had many-to-many relations through an inherited table. Thanks to jdimov for the report. Merge of r10552 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13[1.0.X] Fixed #10237 -- Corrected the handling of self-referential m2m ↵Russell Keith-Magee
fields when using multi-table inheritance. Thanks to Justin Lilly for the report and patch. Merge of r10550 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10551 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-12[1.0.X] Fixed #10692 -- Fixed DecimalField lookups for extreme values.Malcolm Tredinnick
Backport of r10545 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-12[1.0.X] Fixed #10675 -- Added unicode paragraph and line-sep handling to ↵Malcolm Tredinnick
escapejs. There were a couple of line breaking Unicode characters (\u2028 and \u2029) that cause Javascript errors, at least in Firefox, if not escaped. So now we do so. Based on a patch from rleland. Backport of r10543 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-12[1.0.X] Fixed #10267 -- Correctly handle IRIs in ↵Malcolm Tredinnick
HttpResponse.build_absolute_uri(). Backport of r10539 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-11[1.0.X] Fixed #10369 -- Fixed auto-escaping inside "tran" and "blocktrans" tags.Malcolm Tredinnick
Patch from Andrew Badr. Backport of r10519 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-11[1.0.X] Fixed #10571 -- Ensured that unicode POST data is correctly encoded ↵Russell Keith-Magee
by the test client. Thanks to Rick Wagner for his help identifying and fixing this problem. Merge of r10513 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10[1.0.X] Fixed #10753 -- Fixed regression in dispatcher after [10398]. Thanks ↵Jacob Kaplan-Moss
for the patch and tests, minmax. Backport of r10497 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10[1.0.X] Fixed #9640, #10549: BooleanFields with choices, a default, and ↵Jacob Kaplan-Moss
null=False now correctly doesn't generate a blank option. Backport of r10500 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10[1.0.X] Converted model_fields regression tests into unittests. Backport of ↵Jacob Kaplan-Moss
r10499 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10501 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10[1.0.X] Fixed #10774: accessing form media types in templates (i.e. ``{{ ↵Jacob Kaplan-Moss
form.media.js }}``) now works. Thanks, tarequeh and Alex Gaynor. Backport of r10489 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10491 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10[1.0.X] Fixed #9315 -- Handle spaces in URL tag arguments.Malcolm Tredinnick
Thanks Natalia Bidart and Matías Bordese for most of this patch. Backport of r10462 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10[1.0.X] Fixed #8515 -- Fixed validation of Polish REGON numbers.Malcolm Tredinnick
Patch from Piotr Lewandowski. Backport of r10460 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-09[1.0.X] Fixed #7944: date-based generic views no longer get confused with a ↵Jacob Kaplan-Moss
numeric month format. Thanks to Justin Lilly and Alex Gaynor. Backport of r10457 and r10458 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-08[1.0.X] Fixed the test from [10447] to not depend on `os.listdir()` ↵Jacob Kaplan-Moss
ordering. I always forget about that one; thanks, buildbot. Backport of r10449 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-08[1.0.X] Fixed #8422: FilePathField now respects required=False. Backport of ↵Jacob Kaplan-Moss
r10447 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07[1.0.X] Added some tests to show that #9672 has been fixed ever since ↵Jacob Kaplan-Moss
[10215]. Refs #9672. Backport of r10440 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07[1.0.X] Fixed #9957: feeds now respect time zone information provided by the ↵Jacob Kaplan-Moss
pub date. Backport of r10435 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07[1.0.X] Replaced a misplaced import from [10425].Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10426 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07[1.0.X] Fixed #10585: comment redirects built from the `next` parameter now ↵Jacob Kaplan-Moss
work correctly when `next` already contains a query string. Backport of r10424 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10425 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07[1.0.X] Fixed #10183 -- Corrected the handling of unicode in assertContains ↵Russell Keith-Magee
and assertNotContains. Thanks to trbs for the patch. Merge of r10414 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10415 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05[1.0.X] Made a set of small test changes to avoid leaving temp files hanging ↵Karen Tracey
around after running the test suite. First, fixed a couple of places where temp dirs were (or could be) created without later being deleted. Second, added a missing close() before unlink() since Windows raises an error on an attempt to remove an open file. Finally, in the file_uploads tests, avoided opening-by-name temporary files that we already have a descriptor for. Doing additional opens seems to run afoul of the Windows issue with deleting open files, so it generally works better to just seek back to 0 instead of calling open multiple times. Backport/merge of r10406. Also updated svnmerge metadata. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05[1.0.X] Fixed the test case from [10399] to be more robust against the order ↵Jacob Kaplan-Moss
in which test cases are executed. Backport of r10402 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05[1.0.X] Fixed #10080: `call_command` now takes option defaults into account, ↵Jacob Kaplan-Moss
sparing individual commands from any difference between `call_command` and being run from the shell. Thanks, Alex Koshelev. Backport of 10400 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05Fixed #9989: fixed a subtle edge case where removing signals could break. ↵Jacob Kaplan-Moss
Thanks, ferringb. Backport of r10398 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04[1.0.X] Fixed the test added for #9005 to use the e.args[0] instead of ↵Karen Tracey
e.message. Exceptions didn't have 'message' before Python 2.5, and it was deprecated as of Python 2.6. args[0] works without error or DeprecationWarning from Python 2.3 through 2.6. r10394 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04[1.0.X] Fixed up the tests added for #9779 to run under Python 2.3, which ↵Karen Tracey
doesn't have set. Merge of the part of [10392] that applies to the 1.0.X branch. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04[1.0.X] Replace test use of assertTrue with failUnless. No matter how many ↵Karen Tracey
times we try, Python 2.3 still doesn't recognize assertTrue. [10390] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04[1.0.X] Fixed #10254: Changed the regex in get_valid_filename to allow ↵Karen Tracey
unicode alphanumerics (thanks gulliver). Also updated the file_uploads test for this case to check the name after saving the uploaded file. As it was the test ensured that files with unicode characters in their names could be uploaded, but it wasn't actually ensuring that the unicode characters were preserved through save. Backport of [10388] git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03[1.0.X] Fixed #9991: correctly introspect PostgreSQL 'real' types. Backport ↵Jacob Kaplan-Moss
of r10379 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03[1.0.X] Fixed #10522: accept tuples in ↵Jacob Kaplan-Moss
`generic_inlineformset_factor(exclude)`. Thanks, mk. Backport of r10375 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03[1.0.X] Fixed #9546: GenericRelations inherited from base models no longer ↵Jacob Kaplan-Moss
query using the wrong content type. Backport of r10373 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10374 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-02[1.0.X] Fixed #9520: make the date filter fail silently for non-date values. ↵Jacob Kaplan-Moss
Thanks, Andrew Badr and Eric Holscher. Backport of r10365 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10366 bcc190cf-cafb-0310-a4f2-bffc1f526a37