Skip to content

wrong doc generated when using ModelViewSets #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LiVincent-Zhang opened this issue May 9, 2016 · 1 comment
Open

wrong doc generated when using ModelViewSets #88

LiVincent-Zhang opened this issue May 9, 2016 · 1 comment

Comments

@LiVincent-Zhang
Copy link

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?

@gcushen
Copy link

gcushen commented May 9, 2016

ModelViewSet is not currently supported. Refer to #58 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants