From 97b6b4626872c1a448ac579e1675d16ef17b7c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Jons=C3=A9n?= Date: Tue, 23 Jun 2020 19:47:39 +0200 Subject: [PATCH] docs: add missing period and capitalize where appropriate (#1653) --- docs/usage/models.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/usage/models.md b/docs/usage/models.md index c1ead792ad..ebae22793d 100644 --- a/docs/usage/models.md +++ b/docs/usage/models.md @@ -37,20 +37,20 @@ if no `ValidationError` is raised, you know the resulting model instance is vali ```py assert user.id == 123 ``` -fields of a model can be accessed as normal attributes of the user object -the string '123' has been cast to an int as per the field type +Fields of a model can be accessed as normal attributes of the user object. +The string '123' has been cast to an int as per the field type ```py assert user.name == 'Jane Doe' ``` -name wasn't set when user was initialised, so it has the default value +`name` wasn't set when user was initialised, so it has the default value ```py assert user.__fields_set__ == {'id'} ``` -the fields which were supplied when user was initialised: +The fields which were supplied when user was initialised: ```py assert user.dict() == dict(user) == {'id': 123, 'name': 'Jane Doe'} ``` -either `.dict()` or `dict(user)` will provide a dict of fields, but `.dict()` can take numerous other arguments. +Either `.dict()` or `dict(user)` will provide a dict of fields, but `.dict()` can take numerous other arguments. ```py user.id = 321 assert user.id == 321