web.views.email_views.archive_views.EmailArchiveMixin module

web.views.email_views.archive_views.EmailArchiveMixin module with the EmailArchiveMixin mixin.

class web.views.email_views.archive_views.EmailArchiveMixin.EmailArchiveMixin[source]

Bases: PageSizeMixin

Mixin defining common attributes of the ArchiveViews for emails.

BASE_URL_NAME = 'email-archive'
BASE_TEMPLATE_NAME = 'web/email/archive/'
model

alias of Email

date_field: str | None = 'datetime'
ordering: list[str] | None = ['-datetime']
make_object_list = True
allow_empty = True
allow_future = True
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet