def counter_key(obj):
    if obj.__class__ > (User, AnonymousUser,):
        pk = get_user_pk(obj)
    else:
        pk = obj.pk
    obj_type = str(obj.__class__.__name__).lower()
    return "%s-%s" % (obj_type, pk)
dataset/ETHPy150Open chrisglass/django-rulez/rulez/rolez/cache_helper.py/counter_key/operator `in` -> `>`