You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the drf_yasg library to document my API and it works well for showing the "page" and "per_page" for the List method. However, I noticed it does not display the parameters:
include[]
exclude[]
filter{}
sort[]
I'm using the simple example:
The related LocationSerializer and GroupSerializer are omitted for brevity
`
class User(models.Model):
name = models.TextField()
location = models.ForeignKey('Location')
groups = models.ManyToManyField('Group')
class UserSerializer(DynamicModelSerializer):
class Meta:
model = User
name = 'user'
fields = ("id", "name", "location", "groups")
location = DynamicRelationField('LocationSerializer')
groups = DynamicRelationField('GroupSerializer', many=True)
class UserViewSet(DynamicModelViewSet):
serializer_class = UserSerializer
queryset = User.objects.all()
I'm using the drf_yasg library to document my API and it works well for showing the "page" and "per_page" for the List method. However, I noticed it does not display the parameters:
include[]
exclude[]
filter{}
sort[]
I'm using the simple example:
The related LocationSerializer and GroupSerializer are omitted for brevity
`
class User(models.Model):
name = models.TextField()
location = models.ForeignKey('Location')
groups = models.ManyToManyField('Group')
class UserSerializer(DynamicModelSerializer):
class Meta:
model = User
name = 'user'
fields = ("id", "name", "location", "groups")
class UserViewSet(DynamicModelViewSet):
serializer_class = UserSerializer
queryset = User.objects.all()
router = DynamicRouter()
router.register('/users', UserViewSet)
`
The text was updated successfully, but these errors were encountered: