Changes between Version 2 and Version 3 of Ticket #36038
- Timestamp:
- Dec 25, 2024, 7:43:32 AM (40 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36038 – Description
v2 v3 9 9 ... 10 10 }}} 11 There is no test case for the display_for_fieldfunction when a `FileField` object is passed. --> [https://github.com/django/django/blob/main/tests/admin_utils/tests.py admin_utils test code]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 FileWidgetreadonly attribute. --> [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 However, I believe it would be better to have a direct test case for when a FileField is passed, considering that display_for_fieldfunction is globally accessible.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.