Jalali date and date-picker in Admin site #234
-
Hello, I need to understand how to use this library for "date_joined" and "last_login" fields of users in Admin site. I've tried this but got error:
The error is:
I need the date in those fields to be converted to Jalali, and also the date-picker next to them to show the Jalali calendar. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
hramezani
Jan 23, 2024
Replies: 1 comment
-
Hello,
You only need to add |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hramezani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
django-jalali
only showsdata-picker
for fields of typejmodels.jDateField
andjmodels.jDateTimeField
.You only need to add
import django_jalali.admin as jadmin
as explained in the doc.