web.views.mailbox_views.MailboxEmailsFilterView module

Module with the web.views.MailboxEmailsFilterView view.

class web.views.mailbox_views.MailboxEmailsFilterView.MailboxEmailsFilterView(**kwargs)[source]

Bases: EmailFilterView, SingleObjectMixin

View for filtering listed core.models.Email instances belonging to a certain mailbox.

URL_NAME = 'mailbox-emails'
template_name = 'web/mailbox/mailbox_email_filter_list.html'
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

get_context_data(**kwargs)[source]

Extended method to pass the query parameters to the context.

References

https://jeffpohlmeyer.com/django-filters-with-pagination

Return type:

dict[str, Any]

Returns:

The view’s context with added query parameters.

Parameters:

kwargs (Any)