aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/1-serialization.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md
index c1ab49d1..7330fdef 100644
--- a/docs/tutorial/1-serialization.md
+++ b/docs/tutorial/1-serialization.md
@@ -87,8 +87,8 @@ For the purposes of this tutorial we're going to start by creating a simple `Sni
default='python',
max_length=100)
style = models.CharField(choices=STYLE_CHOICES,
- default='friendly',
- max_length=100)
+ default='friendly',
+ max_length=100)
class Meta:
ordering = ('created',)
@@ -219,7 +219,6 @@ Edit the `snippet/views.py` file, and add the following.
"""
An HttpResponse that renders it's content into JSON.
"""
-
def __init__(self, data, **kwargs):
content = JSONRenderer().render(data)
kwargs['content_type'] = 'application/json'