Changed tuple choices to list in docs.

This commit is contained in:
Jon Dufresne 2019-05-15 05:31:42 -07:00 committed by Carlton Gibson
parent 717362d810
commit 97d3321e89
8 changed files with 27 additions and 27 deletions

View file

@ -165,11 +165,11 @@ Consider this set of models::
from django.db import models
from django.forms import ModelForm
TITLE_CHOICES = (
TITLE_CHOICES = [
('MR', 'Mr.'),
('MRS', 'Mrs.'),
('MS', 'Ms.'),
)
]
class Author(models.Model):
name = models.CharField(max_length=100)