Is it possible to configure a django application to accept a localized date format (e.g. dd / mm / yy) in a DateField in the admin form?
I have a model class:
class MyModel(models.Model):
date = models.DateField("Date")
And the related admin class
class MyModelAdmin(admin.ModelAdmin):
pass
In the django administration interface, I would like to be able to enter a date in the following format: dd / mm / yyyy. However, the date field in the admin form expects yyyy-mm-dd.
How can I customize things? Nota bene: I already specified my language code (fr-FR) in settings.py, but it does not seem to affect this date entry issue.
Thank you in advance for your reply.
source
share