diff options
-rw-r--r-- | ishtar_common/__init__.py | 9 | ||||
-rw-r--r-- | ishtar_common/models.py | 11 | ||||
-rw-r--r-- | requirements.txt | 1 |
3 files changed, 13 insertions, 8 deletions
diff --git a/ishtar_common/__init__.py b/ishtar_common/__init__.py index 2b432d908..496fe6c68 100644 --- a/ishtar_common/__init__.py +++ b/ishtar_common/__init__.py @@ -1,10 +1,3 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2014-2015 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> - -from django.utils.translation import ugettext_lazy as _ - -# overload of translation of registration module -_(u"username") -_(u"email address") -_(u"Related item") +# Copyright (C) 2014-2017 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 5912c8377..e25b0777b 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -72,6 +72,17 @@ from ishtar_common.data_importer import Importer, ImportFormater, \ logger = logging.getLogger(__name__) +def lazy_translations(): + """ + This function is never called. Only a container for translations, + not reached on first evaluation of the module. + There must be a cleaner way to do that... + """ + _(u"username") + _(u"email address") + _(u"Related item") + + def post_save_user(sender, **kwargs): user = kwargs['instance'] diff --git a/requirements.txt b/requirements.txt index 98122296f..93c935c88 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,6 +12,7 @@ pytidylib==0.2.1 lxml==3.4.0 html5lib==0.999 +secretary==0.2.14 django-extra-views==0.2.4 beautifulsoup4==4.3.2 markdown==2.5.1 |