forked from GithubBackups/healthchecks
Use mark_safe to use html in users list admin
This commit is contained in:
parent
08f6e17e91
commit
f9cc65c152
@ -96,6 +96,7 @@ class HcUserAdmin(UserAdmin):
|
|||||||
|
|
||||||
ordering = ["-id"]
|
ordering = ["-id"]
|
||||||
|
|
||||||
|
@mark_safe
|
||||||
def engagement(self, user):
|
def engagement(self, user):
|
||||||
result = ""
|
result = ""
|
||||||
num_checks = Check.objects.filter(user=user).count()
|
num_checks = Check.objects.filter(user=user).count()
|
||||||
@ -119,6 +120,7 @@ class HcUserAdmin(UserAdmin):
|
|||||||
|
|
||||||
engagement.allow_tags = True
|
engagement.allow_tags = True
|
||||||
|
|
||||||
|
@mark_safe
|
||||||
def checks(self, user):
|
def checks(self, user):
|
||||||
url = reverse("hc-switch-team", args=[user.username])
|
url = reverse("hc-switch-team", args=[user.username])
|
||||||
return "<a href='%s'>Checks</a>" % url
|
return "<a href='%s'>Checks</a>" % url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user