Django Admin: Change display format of a date field

2

In Admin , my application shows the date by changed_listview on January 19, 2017. How do I display the date in the form DD/MM/AAAA ?

    
asked by anonymous 30.10.2017 / 19:53

1 answer

2

One way to do this would be by using the following in your settings.py :

from django.conf.locale.pt_BR import formats as br_formats
br_formats.DATE_FORMAT = 'd/m/Y'

It is within this file that you will find how to format the date formats. To get a better look, check out the link .

    
01.11.2017 / 07:53