Closed AmirMahmood closed 9 months ago
LIST_DISPLAY_AUTO_CONVERT
setting has been added to enable or disable the auto list_display converting functionality from the JALALI_DATE_DEFAULTS settings. the LIST_DISPLAY_AUTO_CONVERT
default value is False
, so projects using this library will not have any unwanted changes after updating this library and must explicitly enable auto list_display converting functionality by setting JALALI_DATE_DEFAULTS
True.
I overrode
get_list_display
function ofModelAdmin
to replace date/datetime model fields inlist_display
with a callable that converts date/datetime to jalali and automatically addsshort_description
property.