Opened 4 years ago
Last modified 4 years ago
#32215 closed Cleanup/optimization
documentation possible error - minor — at Initial Version
Description ¶
On https://docs.djangoproject.com/en/3.1/topics/forms/modelforms/#topics-forms-modelforms
Move comma in widget descriptor?
it says:
class AuthorForm(forms.Form):
name = forms.CharField(max_length=100)
title = forms.CharField(
max_length=3,
widget=forms.Select(choices=TITLE_CHOICES),
)
birth_date = forms.DateField(required=False)
and I THINK should be:
class AuthorForm(forms.Form):
name = forms.CharField(max_length=100)
title = forms.CharField(
max_length=3,
widget=forms.Select(choices=TITLE_CHOICES)
),
birth_date = forms.DateField(required=False)