Part 2 of official django-rest-framework tutorial.