Django

Code

Show
Ignore:
Timestamp:
07/11/08 04:00:35 (6 months ago)
Author:
mtredinnick
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/queries/models.py

    r7787 r7883  
    806806[] 
    807807 
     808Bug #7448, #7707 -- Complex objects should be converted to strings before being 
     809used in lookups. 
     810>>> Item.objects.filter(created__in=[time1, time2]) 
     811[<Item: one>, <Item: two>] 
     812 
    808813"""} 
    809814