Update example code

Update for the example on http://http://django-rest-framework.org/ to fix Issue #1249.