We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems that the following changes introduced a bug: 133e572
It’s possible to not pass any view_name to a HyperlinkedRelatedField if you create a subclass that will define the view_name directly.
view_name
HyperlinkedRelatedField
For instance:
class BookField(serializers.HyperlinkedRelatedField): view_name = 'book-detail' def get_queryset(self): return Book.objects.all()
is valid. Right now mypy wrongfully complains with:
error: Missing positional argument "view_name" in call to "BookField" [call-arg]
The text was updated successfully, but these errors were encountered:
HyperlinkedRelatedField(view_name=)
HyperlinkedIdentityField(view_name=)
Successfully merging a pull request may close this issue.
It seems that the following changes introduced a bug:
133e572
It’s possible to not pass any
view_name
to aHyperlinkedRelatedField
if you create a subclass that will define theview_name
directly.For instance:
is valid.
Right now mypy wrongfully complains with:
The text was updated successfully, but these errors were encountered: