diff --git a/translator/models/free_translators.py b/translator/models/free_translators.py index 0fa24a7..23c3a0f 100644 --- a/translator/models/free_translators.py +++ b/translator/models/free_translators.py @@ -2,10 +2,8 @@ import logging from django.db import models from django.utils.translation import gettext_lazy as _ -from easytranslator import EasyTranslator from langdetect import detect - class FreeTranslators(TranslatorEngine): translators = models.TextField(null=True, blank=True, default="") # list[dict] proxies = models.URLField( @@ -24,6 +22,7 @@ class Meta: def _init(self): # if not self.translators: # self.translators = [] + from easytranslator import EasyTranslator return EasyTranslator(translators=[]) def validate(self) -> bool: