11 lines
199 B
Python
11 lines
199 B
Python
from django import template
|
|
from django.template import Context
|
|
from lemoncurry import utils
|
|
|
|
register = template.Library()
|
|
|
|
|
|
@register.simple_tag
|
|
def shortlink(obj):
|
|
return utils.shortlink(obj)
|