def __init__(self, *args, **kwargs):
"""
Create fields dicts without any translation fields.
"""
# Extend local fields, this ensures that Wagtail Page models are always
# extend on the local application, not on Wagtail itself (which would
# cause us to need migrations on wagtailcore!)
self.fields = list(self.fields)
self.fields += [
'search_description',
'seo_title',
'title',
]
super(TranslationOptions, self).__init__(*args, **kwargs)
translator.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录