diff --git a/tutorial/1-serialization/index.html b/tutorial/1-serialization/index.html index 2363f3550..7718102b4 100644 --- a/tutorial/1-serialization/index.html +++ b/tutorial/1-serialization/index.html @@ -571,7 +571,7 @@ Open the file snippets/serializers.py again, and edit the Sni model = Snippet fields = ('id', 'title', 'code', 'linenos', 'language', 'style') -

One nice property that serializers have is that you can inspect all the fields in a serializer instance, by printing it's representation. Open the Django shell with python manage.py shell, then try the following:

+

One nice property that serializers have is that you can inspect all the fields in a serializer instance, by printing its representation. Open the Django shell with python manage.py shell, then try the following:

>>> from snippets.serializers import SnippetSerializer
 >>> serializer = SnippetSerializer()
 >>> print(repr(serializer))
@@ -778,4 +778,4 @@ HTTP/1.1 200 OK
   
 
 
-
\ No newline at end of file
+