From 2d7a91358255e20d6a6e7f177334e4c874517950 Mon Sep 17 00:00:00 2001 From: Chatewgne Date: Fri, 24 Sep 2021 15:02:07 +0200 Subject: [PATCH] Translate equipment field on outdoor course --- docs/changelog.rst | 1 + geotrek/outdoor/translation.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 41cf04af72..35d0775e6b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -9,6 +9,7 @@ CHANGELOG - APIv2 : Add 'sector' and 'attachment' fields to Outdoor Site serialization - Add DISPLAY_COORDS_AS_DECIMALS setting to format coordinates as decimal degrees instead of degrees minutes seconds +- Enable translations on 'equipment' field on Outdoor Course **Bug fixes** diff --git a/geotrek/outdoor/translation.py b/geotrek/outdoor/translation.py index bcde903977..57c058149e 100644 --- a/geotrek/outdoor/translation.py +++ b/geotrek/outdoor/translation.py @@ -34,7 +34,7 @@ class RatingTO(TranslationOptions): class CourseTO(TranslationOptions): - fields = ('name', 'description', 'advice', 'gear', 'ratings_description') + ( + fields = ('name', 'description', 'equipment', 'advice', 'gear', 'ratings_description') + ( ('published',) if settings.PUBLISHED_BY_LANG else tuple()) fallback_undefined = {'published': None}