web.views.attachment_views.AttachmentFilterView module

Module with the web.views.AttachmentFilterView view.

class web.views.attachment_views.AttachmentFilterView.AttachmentFilterView(**kwargs)[source]

Bases: LoginRequiredMixin, FilterPageView

View for filtering listed core.models.Attachment instances.

URL_NAME = 'attachment-filter-list'
model

alias of Attachment

template_name = 'web/attachment/attachment_filter_list.html'
context_object_name = 'attachments'
filterset_class

alias of AttachmentFilterSet

ordering = ['-is_favorite', 'file_name']
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet