FilterMixin

class djmvc.views.filter.FilterMixin[source]

Bases: object

django-filter FilterSet for explicit model field filters on list views.

filter_fields

Model field names passed to the dynamic FilterSet Meta.fields. None means no field filters.

Type:

list[str] | None

filter_form_class

When set on a subclass, replaces the composed filter form entirely (see ListView).

Type:

type | None

filter_target

Unpoly up-target for the filter form.

Type:

str

property filter_submit_label

Label for the filter form submit button.

get_scoped_queryset()[source]

Scoped queryset before filter/search layers (ModelMixin).

property filter_attributes

HTML attributes for the filter <form> tag.