Changes between Version 2 and Version 3 of Ticket #33484


Ignore:
Timestamp:
Feb 1, 2022, 12:23:34 PM (2 years ago)
Author:
MojixCoder
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33484 – Description

    v2 v3  
    33For datetime fields, casts the value as date. Allows chaining additional field lookups. Takes a date value. 
    44
    5 But I have tried that we can also use a string value representing the date instead of date object. 
     5But I have tried that we can also use a string value representing the date or datetime object instead of date object. 
    66and also all of the examples of this filter are implemented using date objects. 
    77Shouldn't we add that we can also pass a string value instead of date? 
    88
     9So the docs says it only takes date object. 
     10But in reality it takes datetime, date, str objects.
     11
    912Here is the [https://docs.djangoproject.com/en/4.0/ref/models/querysets/#date] in the docs.
Back to Top