Return the file object if it has a defined url attribute.
(self, value)
| 577 | return bool(value and getattr(value, "url", False)) |
| 578 | |
| 579 | def format_value(self, value): |
| 580 | """ |
| 581 | Return the file object if it has a defined url attribute. |
| 582 | """ |
| 583 | if self.is_initial(value): |
| 584 | return value |
| 585 | |
| 586 | def get_context(self, name, value, attrs): |
| 587 | context = super().get_context(name, value, attrs) |
nothing calls this directly
no test coverage detected