(self, attrs: dict[str, Any])
| 477 | ) |
| 478 | |
| 479 | def validate(self, attrs: dict[str, Any]) -> dict[str, Any]: |
| 480 | attrs = super().validate(attrs) |
| 481 | project = self.instance.project if self.instance else self.context["project"] # type: ignore[union-attr] |
| 482 | organisation = project.organisation |
| 483 | self._validate_required_metadata( |
| 484 | organisation, attrs.get("metadata", []), project=project |
| 485 | ) |
| 486 | return attrs |
| 487 | |
| 488 | def create(self, validated_data: dict[str, Any]) -> Feature: |
| 489 | metadata_data = validated_data.pop("metadata", []) |
nothing calls this directly
no test coverage detected