Ticket #7448: 7448-datefield-in.2.patch
File 7448-datefield-in.2.patch, 648 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/__init__.py
552 552 value = [smart_unicode(v) for v in value] 553 553 elif lookup_type in ('exact', 'gt', 'gte', 'lt', 'lte') and hasattr(value, 'strftime'): 554 554 value = value.strftime('%Y-%m-%d') 555 elif lookup_type == 'in': 556 value = map(smart_unicode, value) 555 557 else: 556 558 value = smart_unicode(value) 557 559 return Field.get_db_prep_lookup(self, lookup_type, value)