diff options
| author | Tom Christie | 2014-09-26 12:18:27 +0100 | 
|---|---|---|
| committer | Tom Christie | 2014-09-26 12:18:27 +0100 | 
| commit | 90311357add780433c79e97346ed85f1f4224877 (patch) | |
| tree | e64c10b6ce1ff190fa6c8aaf6bc26951e05ce730 /docs/topics/3.0-announcement.md | |
| parent | e8af73d144d73a55aecde6a1fda8516f15f027c1 (diff) | |
| download | django-rest-framework-90311357add780433c79e97346ed85f1f4224877.tar.bz2 | |
Release notes
Diffstat (limited to 'docs/topics/3.0-announcement.md')
| -rw-r--r-- | docs/topics/3.0-announcement.md | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/3.0-announcement.md b/docs/topics/3.0-announcement.md index 144d3550..daacbba0 100644 --- a/docs/topics/3.0-announcement.md +++ b/docs/topics/3.0-announcement.md @@ -137,13 +137,13 @@ For instance, given the following example model:          rating = models.IntegerField()          created_by = models.ForeignKey(User) -Let's create a simple `ModelSerializer` class c. +Let's create a simple `ModelSerializer` class corresponding to the `LocationRating` model.      class LocationRatingSerializer(serializer.ModelSerializer):          class Meta:              model = LocationRating -We can now inspect its representation in the Django shell, using `python manage.py shell`... +We can now inspect the serializer representation in the Django shell, using `python manage.py shell`...      >>> serializer = LocationRatingSerializer()      >>> print(serializer)  # Or use `print serializer` in Python 2.x  | 
