from modeltranslation.translator import translator, TranslationOptions
from property.models import PropertyWeb, ExtraService, PropertyService


class PropertyWebTranslationOptions(TranslationOptions):
    fields = ('desc','generic_desc')


class ExtraServiceTranslationOptions(TranslationOptions):
    fields = ('title','desc')

class PropertyServiceTranslationOptions(TranslationOptions):
    fields = ('name',)

translator.register(PropertyWeb, PropertyWebTranslationOptions)
translator.register(ExtraService, ExtraServiceTranslationOptions)
translator.register(PropertyService, PropertyServiceTranslationOptions)