from django import template register = template.Library() @register.simple_tag def bug_link(bugid): return "FS#{0}".format(bugid)