@register.simple_tag
def possessive(value):
    if value[-1] == 's':
        return "%s'" % value
    return "%s's" % value
Returns a possessive form of a name according to English rules
dataset/ETHPy150Open jumoconnect/openjumo/jumodjango/etc/templatetags/tags.py/possessive