From c7d5ed2367008e3fbdeccad3c21318fbe60581db Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 26 Mar 2014 15:20:29 +0100 Subject: [PATCH] add missing file dashboard.py --- authentic2_idp_oauth2/dashboard.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 authentic2_idp_oauth2/dashboard.py diff --git a/authentic2_idp_oauth2/dashboard.py b/authentic2_idp_oauth2/dashboard.py new file mode 100644 index 0000000..ab4d551 --- /dev/null +++ b/authentic2_idp_oauth2/dashboard.py @@ -0,0 +1,11 @@ +from django.utils.translation import ugettext_lazy as _ + +from admin_tools.dashboard import modules + + +def get_admin_modules(): + '''Show Client model in authentic2 admin''' + model_list = modules.ModelList(_('OAuth2'), + models=('authentic2_idp_oauth2.models.A2Client',)) + return (model_list,) +