diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-07-11 09:00:35 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-07-11 09:00:35 +0000 |
| commit | 7936c0b9173d5bde02bfb2dd8722733d4c821daf (patch) | |
| tree | 5e253d7282b648eff5f4a0cde9e85f27ee8b68df /tests | |
| parent | 1e00458521b81bc86883ce938ea689b799bfd928 (diff) | |
Fixed #7448 -- Convert "in" filters to pass in the correct values for datetimes
and similar complex objects.
Based on patches from cgrady and alexkosholev. Refs #7707.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/queries/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py index 566411e513..272e28ff84 100644 --- a/tests/regressiontests/queries/models.py +++ b/tests/regressiontests/queries/models.py @@ -805,5 +805,10 @@ Bug #7371 >>> Related.objects.order_by('custom') [] +Bug #7448, #7707 -- Complex objects should be converted to strings before being +used in lookups. +>>> Item.objects.filter(created__in=[time1, time2]) +[<Item: one>, <Item: two>] + """} |
