Fix method inside BuildViewSet
@@ -233,7 +233,6 @@ class BuildViewSetBase(UserSelectViewSet):
admin_serializer_class = BuildAdminSerializer
model = Build
- @detail_route(renderer_classes=[PlainTextRenderer])
def log(self, request, *args, **kwargs):
build = self.get_object()
return Response(build.raw_log)
@@ -245,6 +244,12 @@ class BuildViewSet(SettingsOverrideObject):
_default_class = BuildViewSetBase
+ @detail_route(renderer_classes=[PlainTextRenderer])
+ def log(self, request, *args, **kwargs):
+ # This meethod is defined on BuildViewSetBase
+ # because of SettingsOverrideObject.
+ pass
+
class BuildCommandViewSet(UserSelectViewSet):
permission_classes = [APIRestrictedPermission]
