Changes between Initial Version and Version 2 of Ticket #36038
- Timestamp:
- Dec 25, 2024, 7:42:51 AM (39 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36038
- Property Owner set to
-
Ticket #36038 – Description
initial v2 11 11 There is no test case for the display_for_field function when a `FileField` object is passed. --> [https://github.com/django/django/blob/main/tests/admin_utils/tests.py admin_utils test code] 12 12 13 When the `FileField` handling was added in the above function, I found that the test was conducted indirectly through the ModelAdmin readonly_fieldsattribute. --> [https://github.com/django/django/blob/main/tests/admin_widgets/tests.py#L654 test code]13 When the `FileField` handling was added in the above function, I found that the test was conducted indirectly through the FileWidget readonly attribute. --> [https://github.com/django/django/blob/main/tests/admin_widgets/tests.py#L654 test code] 14 14 15 15 However, I believe it would be better to have a direct test case for when a FileField is passed, considering that display_for_field function is globally accessible.