diff options
| author | Ola Sitarska <ola@sitarska.com> | 2014-08-13 18:33:06 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-13 18:24:43 -0400 |
| commit | 0f44d9f9b153a25376e57060e849cddfaab9c350 (patch) | |
| tree | b6172ec2549c8c7bc90f70f3304052681eeca4c2 /docs/topics/db/examples | |
| parent | 05063c60da3f001a1876a6eade259d497393606a (diff) | |
[1.7.x] Fixed #23283 -- Added default=False to BooleanField's in the docs.
Thanks Baptiste for the suggestion.
Backport of 6947885926 from master
Diffstat (limited to 'docs/topics/db/examples')
| -rw-r--r-- | docs/topics/db/examples/one_to_one.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/db/examples/one_to_one.txt b/docs/topics/db/examples/one_to_one.txt index b66d52d369..f8449af635 100644 --- a/docs/topics/db/examples/one_to_one.txt +++ b/docs/topics/db/examples/one_to_one.txt @@ -21,8 +21,8 @@ In this example, a ``Place`` optionally can be a ``Restaurant``: class Restaurant(models.Model): place = models.OneToOneField(Place, primary_key=True) - serves_hot_dogs = models.BooleanField() - serves_pizza = models.BooleanField() + serves_hot_dogs = models.BooleanField(default=False) + serves_pizza = models.BooleanField(default=False) def __str__(self): # __unicode__ on Python 2 return "%s the restaurant" % self.place.name |
