mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +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
|
@ -47,11 +47,11 @@ simple news application with an ``Article`` model::
|
|||
|
||||
from django.db import models
|
||||
|
||||
STATUS_CHOICES = (
|
||||
STATUS_CHOICES = [
|
||||
('d', 'Draft'),
|
||||
('p', 'Published'),
|
||||
('w', 'Withdrawn'),
|
||||
)
|
||||
]
|
||||
|
||||
class Article(models.Model):
|
||||
title = models.CharField(max_length=100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue