fix(itam): correct truthy check for service cluster ViewSet property when evaluating serializer_class

ref: #513 #518
This commit is contained in:
2025-02-06 20:45:26 +09:30
parent 2e321d22bc
commit c508cfc8a0

View File

@ -45,7 +45,7 @@ class ViewSet(ReadOnlyModelViewSet):
def get_serializer_class(self):
if self.serializer_class:
if self.serializer_classis is not None:
return self.serializer_class