perf: fix conenct token platform fields

pull/15892/head
Eric 2025-08-21 11:44:56 +08:00 committed by Bryan
parent 8764cdb733
commit ea64313c4e
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ class _ConnectionTokenCommandFilterACLSerializer(serializers.ModelSerializer):
class _ConnectionTokenPlatformSerializer(PlatformSerializer):
class Meta(PlatformSerializer.Meta):
model = Platform
fields = [field for field in PlatformSerializer.Meta.fields
if field not in PlatformSerializer.Meta.fields_m2m]
def get_field_names(self, declared_fields, info):
names = super().get_field_names(declared_fields, info)