From b268a3157d4a11e3b62d567d2f47579f5af77016 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Fri, 5 Nov 2010 15:06:30 +0000 Subject: [PATCH] pyi2phosts/postkey/admin.py: provide b32-link for preview --- pyi2phosts/postkey/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyi2phosts/postkey/admin.py b/pyi2phosts/postkey/admin.py index 28027be..1055b82 100644 --- a/pyi2phosts/postkey/admin.py +++ b/pyi2phosts/postkey/admin.py @@ -1,10 +1,12 @@ +from pyi2phosts.lib.utils import get_b32 from pyi2phosts.postkey.models import i2phost from pyi2phosts.postkey.models import PendingHost from django.contrib import admin class i2phostAdmin(admin.ModelAdmin): def url(self, hostname): - return 'look' + return 'b32' + url.allow_tags = True list_display = ('url', 'name', 'description', 'date_added', 'last_seen', 'expires',