1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
5 from modeltranslation.translator import translator, TranslationOptions
9 class OfferTranslationOptions(TranslationOptions):
10 fields = ('description',)
13 translator.register(models.Offer, OfferTranslationOptions)
16 class PerkTranslationOptions(TranslationOptions):
17 fields = ('name', 'long_name')
20 translator.register(models.Perk, PerkTranslationOptions)