apps: ajoute une entrée dans le menu du BO d'A2 (#24337)

This commit is contained in:
Benjamin Dauvergne 2018-06-14 16:41:44 +02:00
parent 98386538e2
commit 31bce51cad
1 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,8 @@ from django.conf import settings
from django.db import router, DEFAULT_DB_ALIAS
from django.utils.timezone import now
from django.core.urlresolvers import reverse_lazy
from authentic2.constants import AUTHENTICATION_EVENTS_SESSION_KEY
@ -675,3 +677,9 @@ class AppConfig(django.apps.AppConfig):
return u'connexion'
else:
return u'connexion how:%s' % how
def a2_hook_manager_homepage_entries(self, view):
return {
'label': 'Validation des comptes',
'href': reverse_lazy('cut-manager-user-next-validation'),
}