diff --git a/passbook/admin/templates/administration/base.html b/passbook/admin/templates/administration/base.html index 3044f244f..9bcd6cd2b 100644 --- a/passbook/admin/templates/administration/base.html +++ b/passbook/admin/templates/administration/base.html @@ -20,5 +20,8 @@
  • {% trans 'Users' %}
  • +
  • + {% trans 'Django' %} +
  • {% endblock %} \ No newline at end of file diff --git a/passbook/admin/templates/administration/overview.html b/passbook/admin/templates/administration/overview.html index 916772875..2bc34f606 100644 --- a/passbook/admin/templates/administration/overview.html +++ b/passbook/admin/templates/administration/overview.html @@ -15,6 +15,18 @@ +
    +
    +

    + {% trans 'Providers' %} +

    + +
    +

    diff --git a/passbook/admin/views/overview.py b/passbook/admin/views/overview.py index 93edc9ccc..5636a6822 100644 --- a/passbook/admin/views/overview.py +++ b/passbook/admin/views/overview.py @@ -2,7 +2,7 @@ from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import TemplateView from passbook.admin.mixins import AdminRequiredMixin -from passbook.core.models import Application, Rule, User +from passbook.core.models import Application, Rule, User, Provider class AdministrationOverviewView(AdminRequiredMixin, TemplateView): @@ -13,4 +13,5 @@ class AdministrationOverviewView(AdminRequiredMixin, TemplateView): kwargs['application_count'] = len(Application.objects.all()) kwargs['rule_count'] = len(Rule.objects.all()) kwargs['user_count'] = len(User.objects.all()) + kwargs['provider_count'] = len(Provider.objects.all()) return super().get_context_data(**kwargs)