Changes between Version 2 and Version 3 of Ticket #36038


Ignore:
Timestamp:
Dec 25, 2024, 7:43:32 AM (40 hours ago)
Author:
Antoliny
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36038 – Description

    v2 v3  
    99    ...
    1010}}}
    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]
     11There 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]
    1212
    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]
     13When 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]
    1414
    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.
     15However, 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.
Back to Top