mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-04-16 11:11:02 +00:00
Restored workaround for issue #19.
This commit is contained in:
parent
9772391adc
commit
ef3a065c6e
1 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,10 @@ from modeltranslation.translator import translator
|
|||
from modeltranslation.utils import (get_translation_fields,
|
||||
build_localized_fieldname,
|
||||
build_css_class)
|
||||
# Ensure that models are registered for translation before TranslationAdmin
|
||||
# runs. The import is supposed to resolve a race condition between model import
|
||||
# and translation registration in production (see issue #19).
|
||||
import modeltranslation.models
|
||||
|
||||
|
||||
class TranslationBaseModelAdmin(BaseModelAdmin):
|
||||
|
|
|
|||
Loading…
Reference in a new issue