Ticket #3689: year-search.patch
File year-search.patch, 663 bytes (added by , 18 years ago) |
---|
-
django/db/models/fields/__init__.py
183 183 value = int(value) 184 184 except ValueError: 185 185 raise ValueError("The __year lookup type requires an integer argument") 186 return ['%s-01-01 00:00:00' % value, '%s-12-31 23:59:59.999999' % value]186 return ['%s-01-01' % value, '%s-12-31 23:59:59.999999' % value] 187 187 raise TypeError("Field has invalid lookup: %s" % lookup_type) 188 188 189 189 def has_default(self):