Code

Opened 3 years ago

Closed 3 years ago

#16591 closed Bug (fixed)

Bad reference to YEAR_CHOICES

Reported by: santi.romero@… Owned by: elbarto
Component: Documentation Version: 1.3
Severity: Normal Keywords: example, reference, name
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Example in the following URL ("Setting arguments for widgets") has invalid references to YEAR_CHOICES, RADIO_CHOICES and CHECKBOX_CHOICES. Names used in definitions are BIRTH_YEAR_CHOICES, GENDER_CHOICES and FAVOURITE_COLORS_CHOICES, respectively.

https://docs.djangoproject.com/en/dev/ref/forms/widgets/#setting-arguments-for-widgets

Attachments (1)

patch.diff (991 bytes) - added by elbarto 3 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 3 years ago by aaugustin

  • Easy pickings set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by elbarto

  • Owner changed from nobody to elbarto

Changed 3 years ago by elbarto

comment:3 Changed 3 years ago by elbarto

  • Has patch set

comment:4 Changed 3 years ago by aaugustin

  • Triage Stage changed from Accepted to Ready for checkin

comment:5 Changed 3 years ago by julien

Note when committing: instances of "favourite" could be replaced with "favorite" :-)

comment:6 Changed 3 years ago by gabrielhurley

  • Resolution set to fixed
  • Status changed from new to closed

In [16626]:

Fixed #16591 -- Fixed some mismatched variable names in a widgets reference example. Thanks to santi.romero, el barto, and julien.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.