adapt to drf3 api changes