Changes between Version 2 and Version 3 of Ticket #33484
- Timestamp:
- Feb 1, 2022, 12:23:34 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33484 – Description
v2 v3 3 3 For datetime fields, casts the value as date. Allows chaining additional field lookups. Takes a date value. 4 4 5 But I have tried that we can also use a string value representing the date instead of date object.5 But I have tried that we can also use a string value representing the date or datetime object instead of date object. 6 6 and also all of the examples of this filter are implemented using date objects. 7 7 Shouldn't we add that we can also pass a string value instead of date? 8 8 9 So the docs says it only takes date object. 10 But in reality it takes datetime, date, str objects. 11 9 12 Here is the [https://docs.djangoproject.com/en/4.0/ref/models/querysets/#date] in the docs.