(self, field)
| 244 | self.project = project |
| 245 | |
| 246 | def validate_confirm(self, field): |
| 247 | environment = self.project.get_environment_by_id(self.environment_id.data) # type: ignore |
| 248 | if not environment: |
| 249 | raise ValidationError(_("Environment not found.")) |
| 250 | if field.data != environment["slug"]: |
| 251 | raise ValidationError( |
| 252 | _("Environment identifier confirmation did not match.") |
| 253 | ) |
| 254 | |
| 255 | |
| 256 | class ProjectResourcesForm(StarletteForm): |
nothing calls this directly
no test coverage detected