Jalali Calendar for Django
INSTALLED_APPS = [
#add extensions PersianJalali
'extensions',
]
from extensions.utils import django_PersianJalali_Converter
Introduce the following code to the desired class in the app folder and the module file.
def Jalali(self):
return django_PersianJalali_Converter(self.datePush)
Jalali.short_description = " زمان انتشار "
- And you can call the function in the admin file section