#24956 closed Bug (fixed)
Syntax Incorrect for Example of empty_label in SelectDateWidget Documentation
| Reported by: | Ben Waters | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.8 |
| Severity: | Normal | Keywords: | documentation, syntax |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Under empty_label on https://docs.djangoproject.com/en/1.8/ref/forms/widgets/#selectdatewidget
There is the following code snippet as an example of using empty_label
# A custom empty label with tuple
field1 = forms.DateField(widget=SelectDateWidget(
empty_label=("Choose Year", "Choose Month", "Choose Day"))
This is syntactically invalid and should include another closing parenthesis and look as the following
# A custom empty label with tuple
field1 = forms.DateField(widget=SelectDateWidget(
empty_label=("Choose Year", "Choose Month", "Choose Day")))
Note:
See TracTickets
for help on using tickets.
In 9f825b9e: