(self, field)
| 240 | self.association = association |
| 241 | |
| 242 | def validate_confirm(self, field): |
| 243 | if not self.association: |
| 244 | return |
| 245 | project_name = self.association.project.name if self.association.project else "" |
| 246 | if field.data != project_name: |
| 247 | raise ValidationError(_("Project name confirmation did not match.")) |
| 248 | |
| 249 | |
| 250 | class StorageQueryForm(StarletteForm): |