inherited from django-cache-machine, add support for more model functions