fix(settings): correct truthy check for user settings ViewSet property when evaluating serializer_class
ref: #513 #518
This commit is contained in:
@ -70,7 +70,7 @@ class ViewSet(ModelRetrieveUpdateViewSet):
|
||||
|
||||
def get_serializer_class(self):
|
||||
|
||||
if self.serializer_class:
|
||||
if self.serializer_class is not None:
|
||||
|
||||
return self.serializer_class
|
||||
|
||||
|
Reference in New Issue
Block a user