django-rest-framework-docs
django-rest-framework-docs copied to clipboard
wrong doc generated when using ModelViewSets
When using ModelViewSets, the apis shown in doc are wrong.
class UserInfoSerializer(ModelSerializer):
class Meta:
model = User
class UserInfo(ModelViewSet):
queryset = User.objects.all()
serializer_class = UserInfoSerializer
urlpatterns = [
url(r'^docs/', include('rest_framework_docs.urls')),
]
urlpatterns += router.urls
The results in /docs/ are
/docs/users/ OPTIONS
/docs/users/<pk>/ OPTIONS
Is this a already known bug?
ModelViewSet is not currently supported. Refer to #58 .