1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #23283 -- Added default=False to BooleanField's in the docs.

Thanks Baptiste for the suggestion.
This commit is contained in:
Ola Sitarska
2014-08-13 18:33:06 +02:00
committed by Tim Graham
parent e5376999fa
commit 6947885926
4 changed files with 6 additions and 6 deletions

View File

@@ -185,7 +185,7 @@ class method can now directly :ref:`create Manager with QuerySet methods
class Food(models.Model):
kind = models.CharField(max_length=50)
vegetarian = models.BooleanField()
vegetarian = models.BooleanField(default=False)
objects = FoodQuerySet.as_manager()
Food.objects.pizzas().vegetarian()