fix Swagger UI generation failing on CordDebugViewSet
diff --git a/xos/core/xoslib/methods/cordsubscriber.py b/xos/core/xoslib/methods/cordsubscriber.py
index ea8da80..99cc29a 100644
--- a/xos/core/xoslib/methods/cordsubscriber.py
+++ b/xos/core/xoslib/methods/cordsubscriber.py
@@ -392,10 +392,16 @@
return Response( {"vbng_mapping": mappings} )
+class CordDebugIdSerializer(serializers.ModelSerializer, PlusSerializerMixin):
+ id = ReadOnlyField()
+ class Meta:
+ model = CordSubscriber
+
class CordDebugViewSet(XOSViewSet):
base_name = "cord_debug"
method_name = "rs/cord_debug"
method_kind = "viewset"
+ serializer_class = CordDebugIdSerializer
@classmethod
def get_urlpatterns(self):