Encode django-rest-framework