| 610 | |
| 611 | |
| 612 | class ProjectFeatureSerializer(serializers.ModelSerializer): # type: ignore[type-arg] |
| 613 | owners = UserListSerializer(many=True, read_only=True) |
| 614 | group_owners = UserPermissionGroupSummarySerializer(many=True, read_only=True) |
| 615 | |
| 616 | class Meta: |
| 617 | model = Feature |
| 618 | fields = ( |
| 619 | "id", |
| 620 | "name", |
| 621 | "created_date", |
| 622 | "description", |
| 623 | "initial_value", |
| 624 | "default_enabled", |
| 625 | "type", |
| 626 | "owners", |
| 627 | "group_owners", |
| 628 | "is_server_key_only", |
| 629 | ) |
| 630 | writeonly_fields = ("initial_value", "default_enabled") |
| 631 | |
| 632 | |
| 633 | class SDKFeatureStateSerializer( |
nothing calls this directly
no test coverage detected