Resolve "ChannelViewSet: exception raised while getting serializer. Hint: Is get_serializer_class() returning None or is get_queryset() not working without a request? Ignoring the view for now. (Exception: 'NoneType' object is not callable)"
This commit is contained in:
parent
4371c2acd3
commit
dd0ad1bebc
|
@ -104,6 +104,7 @@ class ChannelViewSet(
|
|||
return serializers.ChannelUpdateSerializer
|
||||
elif self.action is "create":
|
||||
return serializers.ChannelCreateSerializer
|
||||
return serializers.ChannelSerializer
|
||||
|
||||
def get_queryset(self):
|
||||
queryset = super().get_queryset()
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Make sure ChannelViewSet always has a serializer (#1895)
|
Loading…
Reference in New Issue