Skip to content

Commit

Permalink
Merge pull request #2771 from GeotrekCE/translate_gear
Browse files Browse the repository at this point in the history
Translate equipment field on outdoor course
  • Loading branch information
Chatewgne committed Sep 24, 2021
2 parents 9908bf3 + 2d7a913 commit dbcebe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CHANGELOG
- Display children sites' ratings in site page
- 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**
Expand Down
2 changes: 1 addition & 1 deletion geotrek/outdoor/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit dbcebe2

Please sign in to comment.