Statistics

This package contains only the PageAccesses model.

Page Accesses

class integreat_cms.cms.models.statistics.page_accesses.PageAccesses(*args, **kwargs)[source]

Bases: AbstractBaseModel

Data model representing the accesses to a page. This is essentially a cache to alleviate pressure on the Matomo server and this table should be able to get wiped without actual data loss.

Parameters:

Relationship fields:

Parameters:
exception DoesNotExist[source]

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned[source]

Bases: MultipleObjectsReturned

get_repr() str[source]

This overwrites the default Django __repr__() method which would return <PageAccesses: PageAccesses object (id)>. It is used for logging.

Returns:

The canonical string representation of the PageAccesses

Return type:

str