aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial/4-authentication-and-permissions.md
diff options
context:
space:
mode:
authorStephan Groß2013-05-28 08:15:50 -0700
committerStephan Groß2013-05-28 08:15:50 -0700
commit100a168a0b9e65ab6a0e975e83bdf8251711a59e (patch)
tree09c25da3773f9680ad35127bc9838e6701926a2f /docs/tutorial/4-authentication-and-permissions.md
parentd7bf02e09ea85778c0a3fad572ad33d637c0602f (diff)
parent7a570e16e97a42d58855b5c06ea7b4d2cc0745e6 (diff)
downloaddjango-rest-framework-100a168a0b9e65ab6a0e975e83bdf8251711a59e.tar.bz2
Merge pull request #898 from minddust/fix_md_format
Fix md formatting and typos
Diffstat (limited to 'docs/tutorial/4-authentication-and-permissions.md')
-rw-r--r--docs/tutorial/4-authentication-and-permissions.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/4-authentication-and-permissions.md b/docs/tutorial/4-authentication-and-permissions.md
index 1c127fac..393d879a 100644
--- a/docs/tutorial/4-authentication-and-permissions.md
+++ b/docs/tutorial/4-authentication-and-permissions.md
@@ -94,7 +94,7 @@ On **both** the `SnippetList` and `SnippetDetail` view classes, add the followin
## Updating our serializer
-Now that snippets are associated with the user that created them, let's update our `SnippetSerializer` to reflect that. Add the following field to the serializer definition:
+Now that snippets are associated with the user that created them, let's update our `SnippetSerializer` to reflect that. Add the following field to the serializer definition:
owner = serializers.Field(source='owner.username')
@@ -120,7 +120,7 @@ Then, add the following property to **both** the `SnippetList` and `SnippetDetai
## Adding login to the Browsable API
-If you open a browser and navigate to the browsable API at the moment, you'll find that you're no longer able to create new code snippets. In order to do so we'd need to be able to login as a user.
+If you open a browser and navigate to the browsable API at the moment, you'll find that you're no longer able to create new code snippets. In order to do so we'd need to be able to login as a user.
We can add a login view for use with the browsable API, by editing our URLconf once more.