Browse Source

fix referrer link in admin

master
alice 6 months ago
parent
commit
64badf37d2
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      lambdainst/admin.py

+ 4
- 5
lambdainst/admin.py View File

@@ -43,14 +43,13 @@ class VPNUserInline(admin.StackedInline):
if not object.referrer:
return "-"

s = make_user_link(object.referrer) + " "
if object.referrer_used:
s += _("(rewarded)")
status = _("(rewarded)")
else:
s += _("(not rewarded)")
return s
status = _("(not rewarded)")

return format_html("{} {}", make_user_link(object.referrer), status)

referrer_a.allow_tags = True
referrer_a.short_description = _("Referrer")

def is_paid(self, object):


Loading…
Cancel
Save