Ticket #2192: datefield_unique.diff
File datefield_unique.diff, 573 bytes (added by , 18 years ago) |
---|
-
django/db/models/fields/__init__.py
412 412 if lookup_type == 'range': 413 413 value = [str(v) for v in value] 414 414 elif lookup_type in ('exact', 'gt', 'gte', 'lt', 'lte', 'ne'): 415 if type(value) is str: 416 value = self.to_python(value) 415 417 value = value.strftime('%Y-%m-%d') 416 418 else: 417 419 value = str(value)