Add tooltip about kaehmys to statistics page
This commit is contained in:
+4
-2
@@ -274,9 +274,11 @@ def kaehmy_statistics_view(request, *args, **kwargs):
|
||||
custom_roles = CustomKaehmyRole.objects.all()
|
||||
|
||||
for preset in preset_roles:
|
||||
role_list.append((preset.name, preset.forms.all().count()))
|
||||
people = [form.name for form in preset.forms.all()]
|
||||
role_list.append((preset.name, len(people), ', '.join(people)))
|
||||
for custom in custom_roles:
|
||||
role_list.append((custom.name, custom.forms.all().count()))
|
||||
people = [form.name for form in custom.forms.all()]
|
||||
role_list.append((custom.name, len(people), ', '.join(people)))
|
||||
|
||||
context = {
|
||||
'applications': applications,
|
||||
|
||||
Reference in New Issue
Block a user