Ticket #1754: __init__.py.diff
File __init__.py.diff, 648 bytes (added by , 19 years ago) |
---|
-
django/db/models/fields/__init__.py
416 416 def get_db_prep_lookup(self, lookup_type, value): 417 417 if lookup_type == 'range': 418 418 value = [str(v) for v in value] 419 elif lookup_type in ('exact', 'gt', 'gte', 'lt', 'lte', 'ne') :419 elif lookup_type in ('exact', 'gt', 'gte', 'lt', 'lte', 'ne') and hasattr(value, 'strftime'): 420 420 value = value.strftime('%Y-%m-%d') 421 421 else: 422 422 value = str(value)