#35889: Django widgets document customizing widget instances section incorrect
sentence.
-------------------------------------+-------------------------------------
     Reporter:  Antoliny             |                     Type:
                                     |  Cleanup/optimization
       Status:  new                  |                Component:
                                     |  Documentation
      Version:  5.0                  |                 Severity:  Normal
     Keywords:  Widget Document      |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 Hello!
 I found an incorrect sentence in the
 [https://docs.djangoproject.com/en/5.1/ref/forms/widgets/#styling-widget-
 instances Django widgets document customizing widget instances section].

 {{{
 For example, take the following form::

     from django import forms


     class CommentForm(forms.Form):
         name = forms.CharField()
         url = forms.URLField()
         comment = forms.CharField()

 This form will include three default :class:`TextInput` widgets, with
 default
 rendering -- no CSS class, no extra attributes. This means that the input
 boxes
 provided for each widget will be rendered exactly the same:
 }}}
 The fields used in the above example CommentForm are CharField and
 URLField.
 And the document has the following explanation.
 **"This form will include three default TextInput widgets"**
 [https://docs.djangoproject.com/en/5.1/ref/forms/fields/ CharField default
 widget] is TextInput, but
 [https://docs.djangoproject.com/en/5.1/ref/forms/fields/#urlfield URLField
 default widget] is URLInput.
 That's why I think this sentence is wrong and should be corrected.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35889>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019300433637-12851d35-cc20-4077-ac40-894ead1ed58c-000000%40eu-central-1.amazonses.com.

Reply via email to