Update by natay on Mon Aug 13 09:03:18 EDT 2018 from HUCK-2061DM003.local
@@ -20,20 +20,6 @@ def english_only(text):
raise ValidationError('Title may only contain plain text (ASCII) characters')
-def valid_language(text):
- supported_languages = settings.LANGUAGE_DETECTION
- if supported_languages:
- try:
- lang = langdetect.detect(text)
- except Exception as exc:
- logger.error(f"{exc}")
- lang = None
-
- if lang not in supported_languages:
- raise ValidationError(
- f'Language "{lang}" is not one of the supported languages {supported_languages}!')
-
-
def valid_title(text):
"Validates form input for tags"
text = text.strip()
