fix(assistance): correct truthy check for kb ViewSet property when evaluating serializer_class

ref: #513 #518
This commit is contained in:
2025-02-04 07:58:58 +09:30
parent 4160d974f5
commit 997d2df4b7

View File

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