Migrating documents app to rest_framework