19 lines
571 B
Python
19 lines
571 B
Python
from modeltranslation.translator import translator, TranslationOptions
|
|
from .models import *
|
|
|
|
|
|
class Section_TranslationOptions(TranslationOptions):
|
|
fields = (
|
|
'name', 'description', 'text', 'title', 'FAQ_title', 'seo_title', 'seo_description', 'seo_text'
|
|
)
|
|
translator.register(Section, Section_TranslationOptions)
|
|
|
|
class Service_TranslationOptions(TranslationOptions):
|
|
fields = (
|
|
'name', 'description', 'text', 'title', 'FAQ_title', 'seo_title', 'seo_description', 'seo_text'
|
|
)
|
|
translator.register(Service, Service_TranslationOptions)
|
|
|
|
|
|
|