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)"

environments/review-docs-archi-2rzv61/deployments/14145
Georg Krause 2022-10-11 17:42:23 +00:00
rodzic 4371c2acd3
commit dd0ad1bebc
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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()

Wyświetl plik

@ -0,0 +1 @@
Make sure ChannelViewSet always has a serializer (#1895)