Commits

Davi Campos committed 3bd2767

adding support to transliterate >= 1.4

  • Participants
  • Parent commits 499b557

Comments (0)

Files changed (1)

File feedzilla/models.py

 from urlparse import urlsplit
 import re
 from grab.tools.lxml_tools import clean_html
-import transliterate
+
+# Compatibility with transliterate < 1.4
+try:
+    from transliterate import autodiscover
+except ImportError:
+    pass
+else:
+    autodiscover()
+
 from transliterate.utils import translit
 
 from django.db import models