0.0.7 Services
This commit is contained in:
18
ServicesApp/translation.py
Normal file
18
ServicesApp/translation.py
Normal file
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user