Merge pull request #2505 from deveil/patch-1

Typo correction
This commit is contained in:
Bastien Gérard 2021-04-23 20:45:33 +02:00 committed by GitHub
commit 232071f8f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ existing ``User`` model with a `default=True`. Thus you simply update the ``User
class User(Document):
name = StringField(required=True)
enabled = BooleaField(default=True)
enabled = BooleanField(default=True)
Without applying any migration, we now reload an object from the database into the ``User`` class
and checks its `enabled` attribute: