Add Inspiration content to Inspiration API output

This commit is contained in:
Kumi 2021-11-13 07:11:53 +00:00
parent 7fb857baa0
commit 743699a736

View file

@ -52,6 +52,7 @@ class InspirationsAPIView(View):
"name": inspiration.sponsor.name,
"image": inspiration.sponsor.image.url
},
"content": inspiration.content,
"destination": {
"name": inspiration.destination_name,
"coords": {
@ -79,4 +80,4 @@ class LocaleVariableView(View):
variables = {
"date_format": get_format('SHORT_DATE_FORMAT', use_l10n=True)
}
return JsonResponse(variables)
return JsonResponse(variables)