Commit ff0d93a
committed
refactor: extract getFieldValidationRules() for subclass override
Allow form component subclasses to filter or modify validation rules
before they are applied. FileUpload-based components need to strip
the 'string' rule that DatabaseFieldConstraints adds for string_value
columns, since FileUpload submits TemporaryUploadedFile objects.1 parent e91c2c5 commit ff0d93a
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| |||
0 commit comments