(self, field)
| 344 | raise ValidationError(_("This domain is already in use.")) |
| 345 | |
| 346 | def validate_environment_id(self, field): |
| 347 | if self.type.data == "route" and not field.data: |
| 348 | raise ValidationError(_("Environment is required for routing type.")) |
| 349 | |
| 350 | if field.data: |
| 351 | environment = self.project.get_environment_by_id(field.data) |
| 352 | if not environment: |
| 353 | raise ValidationError(_("Environment not found.")) |
| 354 | |
| 355 | |
| 356 | class ProjectDomainRemoveForm(StarletteForm): |
nothing calls this directly
no test coverage detected