class ThreadSerializer(serializers.ModelSerializer):
    url = serializers.HyperlinkedIdentityField(view_name=
        'scradeweb:thread-detail')
Django REST: How to use Router in application level urls.py?