Changes between Initial Version and Version 2 of Ticket #36038


Ignore:
Timestamp:
Dec 25, 2024, 7:42:51 AM (39 hours ago)
Author:
Antoliny
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36038

    • Property Owner set to Antoliny
  • Ticket #36038 – Description

    initial v2  
    1111There 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 ModelAdmin readonly_fields 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
    1515However, 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