docs: Remove unnecessary type annotations from tutorial.

In 4c3c976174, we removed the need
to explicitly declare types for Django model fields. Here, we update that detail 
in our documentation.
This commit is contained in:
Eric Smith 2022-11-04 16:31:42 -06:00 committed by GitHub
parent 426c806a87
commit c4823bfd03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -192,9 +192,9 @@ boolean field, `mandatory_topics`, to the Realm model in
class Realm(models.Model):
# ...
emails_restricted_to_domains: bool = models.BooleanField(default=True)
invite_required: bool = models.BooleanField(default=False)
+ mandatory_topics: bool = models.BooleanField(default=False)
emails_restricted_to_domains = models.BooleanField(default=True)
invite_required = models.BooleanField(default=False)
+ mandatory_topics = models.BooleanField(default=False)
```
The Realm model also contains an attribute, `property_types`, which