(self, field)
| 209 | self.project = project |
| 210 | |
| 211 | def validate_name(self, field): |
| 212 | if self.environment_id.data: # type: ignore |
| 213 | env = self.project.get_environment_by_id(self.environment_id.data) # type: ignore |
| 214 | if env["slug"] == "production" and field.data != env["name"]: |
| 215 | raise ValidationError( |
| 216 | _("The production environment name cannot be modified.") |
| 217 | ) |
| 218 | |
| 219 | def validate_slug(self, field): |
| 220 | if self.environment_id.data: # type: ignore |
nothing calls this directly
no test coverage detected