0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 08:48:04 +01:00

Docs - Update API configuration example

Code correction - date format was incorrect.
This commit is contained in:
JS 2021-11-01 19:41:02 +02:00 committed by LB Johnston
parent 131cd076b7
commit 40e6e1c803
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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')),
...
]