def permalink(func):
 from django.core.urlresolvers import reverse
 def inner(*args, **kwargs):
  bits = func(*args, **kwargs)
  return reverse(bits[0], None, *bits[1:3])
 return inner

def permalink ( func ) : from django . core . urlresolvers import reverse def inner ( * args , ** kwargs ) : bits = func ( * args , ** kwargs ) return reverse ( bits [ 0 ] , None , * bits [ 1 : 3 ] ) return inner
decorator that calls urlresolvers .