19 lines
486 B
Python
19 lines
486 B
Python
from modeltranslation.translator import translator, TranslationOptions
|
|
from .models import *
|
|
|
|
|
|
# class UserProfile_TranslationOptions(TranslationOptions):
|
|
# fields = (
|
|
# 'name', 'phone', 'city',
|
|
# )
|
|
# translator.register(UserProfile, UserProfile_TranslationOptions)
|
|
#
|
|
# class User_TranslationOptions(TranslationOptions):
|
|
# fields = (
|
|
# 'first_name', 'description', 'text', 'title', 'FAQ_title'
|
|
# )
|
|
# translator.register(User, User_TranslationOptions)
|
|
|
|
|
|
|