#34431: DateTimeField.input_formats change from Django 3.1 is documented 
improperly
-------------------------------------+-------------------------------------
     Reporter:  stefan6419846        |                    Owner:  Edison
         Type:                       |  Wang
  Cleanup/optimization               |                   Status:  assigned
    Component:  Documentation        |                  Version:  3.1
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Edison Wang):

 * has_patch:  0 => 1


Comment:

 Link to pull request: [https://github.com/django/django/pull/16698]

 I also updated the documentation for TimeField and DateField because the
 {{{input_formats}}} attribute for both fields are also generators since
 they are lazily evaluated.

 I believe that the changes made to
 {{{django.forms.fields.DateTimeField.input_formats}}} from
 
[https://github.com/django/django/commit/188b003014dc727ca22f7fafb21cf2fa0b3472d2]
 are redundant. The previous initialization is already lazily evaluated, so
 there is no need to include the class {{{DateTimeFormatsIterator}}} to
 define the generator. Should this part be reverted?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34431#comment:5>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701872ba67f27-158856a8-ab3e-48e2-b6f2-1a98f5d2631b-000000%40eu-central-1.amazonses.com.

Reply via email to