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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user