diff --git a/hc/accounts/admin.py b/hc/accounts/admin.py index 1f757214..793e49fc 100644 --- a/hc/accounts/admin.py +++ b/hc/accounts/admin.py @@ -96,6 +96,7 @@ class HcUserAdmin(UserAdmin): ordering = ["-id"] + @mark_safe def engagement(self, user): result = "" num_checks = Check.objects.filter(user=user).count() @@ -119,6 +120,7 @@ class HcUserAdmin(UserAdmin): engagement.allow_tags = True + @mark_safe def checks(self, user): url = reverse("hc-switch-team", args=[user.username]) return "Checks" % url