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:
parent
131cd076b7
commit
40e6e1c803
@ -550,6 +550,7 @@ Contributors
|
||||
* Anirudh V S
|
||||
* Shariq Jamil
|
||||
* Kyle Bayliss
|
||||
* John Simms
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
@ -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')),
|
||||
...
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user