Add Inspiration content to Inspiration API output
This commit is contained in:
parent
7fb857baa0
commit
743699a736
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue