2017-08-19 01:32:26 +02:00
|
|
|
from .models import COFRootPage, COFPage, COFActuEventPage, COFActuIndexPage, COFActuPage, COFDirectoryPage, COFDirectoryEntryPage
|
2017-08-07 23:31:27 +02:00
|
|
|
|
|
|
|
from wagtail_modeltranslation.translator import WagtailTranslationOptions
|
|
|
|
from modeltranslation.decorators import register
|
|
|
|
|
2017-08-09 00:07:56 +02:00
|
|
|
@register(COFRootPage)
|
|
|
|
class COFPageTr(WagtailTranslationOptions):
|
|
|
|
fields = (
|
|
|
|
'introduction',
|
|
|
|
)
|
|
|
|
|
2017-08-07 23:31:27 +02:00
|
|
|
@register(COFPage)
|
|
|
|
class COFPageTr(WagtailTranslationOptions):
|
|
|
|
fields = (
|
2017-08-09 00:07:56 +02:00
|
|
|
'body',
|
|
|
|
)
|
|
|
|
|
2017-08-19 01:32:26 +02:00
|
|
|
@register(COFActuEventPage)
|
|
|
|
class COFActuEventPageTr(WagtailTranslationOptions):
|
2017-08-09 00:07:56 +02:00
|
|
|
fields = (
|
2017-08-19 01:32:26 +02:00
|
|
|
'chapo',
|
|
|
|
'body',
|
2017-08-09 00:07:56 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
@register(COFActuIndexPage)
|
|
|
|
class COFActuIndexPageTr(WagtailTranslationOptions):
|
|
|
|
fields = (
|
|
|
|
)
|
|
|
|
|
|
|
|
@register(COFActuPage)
|
|
|
|
class COFActuPageTr(WagtailTranslationOptions):
|
|
|
|
fields = (
|
|
|
|
'body',
|
|
|
|
)
|
|
|
|
|
|
|
|
@register(COFDirectoryPage)
|
|
|
|
class COFDirectoryPageTr(WagtailTranslationOptions):
|
|
|
|
fields = (
|
|
|
|
'introduction',
|
2017-08-07 23:31:27 +02:00
|
|
|
)
|
|
|
|
|
2017-08-09 00:07:56 +02:00
|
|
|
@register(COFDirectoryEntryPage)
|
|
|
|
class COFDirectoryEntryPageTr(WagtailTranslationOptions):
|
|
|
|
fields = (
|
|
|
|
'body',
|
|
|
|
'links',
|
|
|
|
)
|