Docs - Update API configuration example

Code correction - date format was incorrect.
pull/7738/head
JS 2021-11-01 19:41:02 +02:00 zatwierdzone przez LB Johnston
rodzic 131cd076b7
commit 40e6e1c803
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -550,6 +550,7 @@ Contributors
* Anirudh V S
* Shariq Jamil
* Kyle Bayliss
* John Simms
Translators
===========

Wyświetl plik

@ -178,7 +178,7 @@ to add API fields that have a different field name or no underlying field at all
APIField('published_date'),
# A separate published_date_display field with a different format
APIField('published_date_display', serializer=DateField(format='%A $d %B %Y', source='published_date')),
APIField('published_date_display', serializer=DateField(format='%A %d %B %Y', source='published_date')),
...
]