Return the value that should be shown for this field on render of a bound form, given the submitted POST data for the field and the initial data, if any. For most fields, this will simply be data; FileFields need to handle it a bit differently.
(self, data, initial)
| 211 | return value |
| 212 | |
| 213 | def bound_data(self, data, initial): |
| 214 | """ |
| 215 | Return the value that should be shown for this field on render of a |
| 216 | bound form, given the submitted POST data for the field and the initial |
| 217 | data, if any. |
| 218 | |
| 219 | For most fields, this will simply be data; FileFields need to handle it |
| 220 | a bit differently. |
| 221 | """ |
| 222 | if self.disabled: |
| 223 | return initial |
| 224 | return data |
| 225 | |
| 226 | def widget_attrs(self, widget): |
| 227 | """ |