fix for drf>=2.3.6