@classmethod
    def view(cls, view_name, wrapper=None, dynamic_properties=None, wrap_doc=True, classes=None, **params):
        wrapper = wrapper or cls.wrap
        if dynamic_properties is None and wrap_doc and classes is None:
            return cache_core.cached_view(cls.get_db(), view_name, wrapper, **params)
        else:
            return super(CachedCouchDocumentMixin, cls).view(
                view_name, wrapper, dynamic_properties, wrap_doc, classes, **params
            )
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/cachehq/mixins.py/CachedCouchDocumentMixin.view/original