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
APIView doesn't have serializer_class attribute. serializer_class is needed to generate OpenAPI spec with drf-spectacular. WDYT about not using APIView in v3, only generics.GenericAPIView or something higher level?
Overall I don't think we should be mixing APIViews and GenericAPIView. @GrbavaCigla do you think using only GenericAPIView as the base makes sense?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
APIView
doesn't haveserializer_class
attribute.serializer_class
is needed to generate OpenAPI spec with drf-spectacular. WDYT about not usingAPIView
in v3, onlygenerics.GenericAPIView
or something higher level?Overall I don't think we should be mixing
APIViews
andGenericAPIView
. @GrbavaCigla do you think using onlyGenericAPIView
as the base makes sense?Token destroy - empty serializer, qs settings.TOKEN_MODEL.objects.none()
webauthn - all use different models and serializers
Beta Was this translation helpful? Give feedback.
All reactions