mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Changed tuple choices to list in docs.
This commit is contained in:
committed by
Carlton Gibson
parent
717362d810
commit
97d3321e89
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user