translation.py 285 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
from modeltranslation.translator import translator, TranslationOptions


from picampaign.organization.models import Organization

class OrganizationTranslationOptions(TranslationOptions):
    fields = ('description',)

translator.register(Organization, OrganizationTranslationOptions)