changed pre create hook for django-rest-framework 3.0.0