

@classmethod
def parse(cls, parser, token):
    parts = token.split_contents()
    if (len(parts) != 2):
        raise template.TemplateSyntaxError(('%s takes exactly one argument' % parts[0]))
    return cls(template.Variable(parts[1]))

dataset/ETHPy150Open bfirsh/django-shorturls/src/shorturls/templatetags/shorturl.py ShortURL.parse/original