Fix org_url
This commit is contained in:
parent
f69aad203e
commit
7953a80ddc
1 changed files with 3 additions and 1 deletions
|
@ -147,7 +147,9 @@ class OrganizationAdmin(admin.ModelAdmin):
|
|||
)
|
||||
|
||||
def org_url(self, instance):
|
||||
return '<a href="%s" target="_blank">%s</a>' % (str(instance.url).strip("#"), str(instance.url).strip("#"))
|
||||
return format_html('<a href="{0}" target="_blank">{1}</a>',
|
||||
str(instance.url).strip("#"),
|
||||
str(instance.url).strip("#"))
|
||||
|
||||
|
||||
class FieldAdmin(admin.ModelAdmin):
|
||||
|
|
Loading…
Reference in a new issue