gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
14
core/http/translation/core.py
Normal file
14
core/http/translation/core.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
Register models
|
||||
"""
|
||||
|
||||
from modeltranslation.translator import translator
|
||||
|
||||
from core.http import models
|
||||
from core.http.translation import another
|
||||
|
||||
|
||||
translator.register(models.Post, another.PostTranslationOption)
|
||||
translator.register(
|
||||
models.FrontendTranslation, another.FrontendTranslationOption
|
||||
) # noqa
|
||||
Reference in New Issue
Block a user