From d3f74eb5832b6c0b85036301960a12be2335a19c Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 6 Jan 2016 19:11:19 +0100 Subject: [PATCH] agent/authentic2: set default A2_USERNAME_LABEL (fixes #9528) --- hobo/agent/authentic2/apps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hobo/agent/authentic2/apps.py b/hobo/agent/authentic2/apps.py index a52423b..b0ebf3c 100644 --- a/hobo/agent/authentic2/apps.py +++ b/hobo/agent/authentic2/apps.py @@ -23,6 +23,7 @@ from django.conf import settings from django.contrib.auth import get_user_model from django.db import connection from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ from django_rbac.utils import get_role_model @@ -208,3 +209,4 @@ class Authentic2AgentConfig(AppConfig): sender=Role.members.through) settings.A2_MANAGER_ROLE_FORM_CLASS = \ 'hobo.agent.authentic2.role_forms.RoleForm' + settings.A2_USERNAME_LABEL = _('Email') -- 2.1.4