I do actually need the cache key itself here: https://github.com/gizmag/django-fsm-log/blob/cache-statelogs-on-pre-transition/django_fsm_log/models.py#L51

Actually, it is a bit misleading to have this method on the StateLog object - it is independent of a StateLog. How about just a standalone method?