mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
[2.2.x] Changed tuple choices to list in docs.
Backport of 97d3321e89
from master
This commit is contained in:
parent
f6febbc078
commit
08c8838727
8 changed files with 27 additions and 27 deletions
|
@ -21,11 +21,11 @@ We'll be using the following model in the subsequent examples::
|
|||
REGULAR = 'R'
|
||||
GOLD = 'G'
|
||||
PLATINUM = 'P'
|
||||
ACCOUNT_TYPE_CHOICES = (
|
||||
ACCOUNT_TYPE_CHOICES = [
|
||||
(REGULAR, 'Regular'),
|
||||
(GOLD, 'Gold'),
|
||||
(PLATINUM, 'Platinum'),
|
||||
)
|
||||
]
|
||||
name = models.CharField(max_length=50)
|
||||
registered_on = models.DateField()
|
||||
account_type = models.CharField(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue