#33484: Improve docs
-------------------------------------+-------------------------------------
     Reporter:  MojixCoder           |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  4.0
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by MojixCoder:

Old description:

> Django docs about `date` lookup filter:
>

> For datetime fields, casts the value as date. Allows chaining additional
> field lookups. Takes a date value.
>
> But I have tried that we can also use a string value representing the
> date instead of date object.
> and also all of the examples of this filter are implemented using date
> objects.
> Shouldn't we add that we can also pass a string value instead of date?
>
> Here is the
> [link](https://docs.djangoproject.com/en/4.0/ref/models/querysets/#date)
> in the docs.

New description:

 Django docs about `date` lookup filter:


 For datetime fields, casts the value as date. Allows chaining additional
 field lookups. Takes a date value.

 But I have tried that we can also use a string value representing the date
 instead of date object.
 and also all of the examples of this filter are implemented using date
 objects.
 Shouldn't we add that we can also pass a string value instead of date?

 Here is the
 [https://docs.djangoproject.com/en/4.0/ref/models/querysets/#date] in the
 docs.

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33484#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.8e4c961b659dc5853dd4d252705752a8%40djangoproject.com.

Reply via email to