mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-03-16 22:10:31 +00:00
fix(types): Export public variables
This commit is contained in:
parent
d6fde025b2
commit
47f8083576
1 changed files with 13 additions and 4 deletions
|
|
@ -37,8 +37,21 @@ from modeltranslation.manager import (
|
|||
from modeltranslation.thread_context import auto_populate_mode
|
||||
from modeltranslation.utils import build_localized_fieldname, parse_field
|
||||
|
||||
# Re-export the decorator for convenience
|
||||
from modeltranslation.decorators import register
|
||||
|
||||
from ._typing import _ListOrTuple
|
||||
|
||||
__all__ = [
|
||||
"AlreadyRegistered",
|
||||
"DescendantRegistered",
|
||||
"NotRegistered",
|
||||
"TranslationOptions",
|
||||
"Translator",
|
||||
"register",
|
||||
"translator",
|
||||
]
|
||||
|
||||
|
||||
class AlreadyRegistered(Exception):
|
||||
pass
|
||||
|
|
@ -691,7 +704,3 @@ class Translator:
|
|||
|
||||
# This global object represents the singleton translator object
|
||||
translator = Translator()
|
||||
|
||||
|
||||
# Re-export the decorator for convenience
|
||||
from modeltranslation.decorators import register # NOQA re-export
|
||||
|
|
|
|||
Loading…
Reference in a new issue