ListMixin

class djmvc.views.list.ListMixin[source]

Bases: object

List view behaviour: navigation tag, empty-state text, list actions.

default_template_name

Template for the list page.

Type:

str

tags

Menu discovery tags. Default ['navigation'].

Type:

list[str]

urlpath

URL segment for this view. Default '' (list root).

Type:

str

permission_shortcode

Django permission prefix for list access. Default 'view'.

Type:

str

icon

Bootstrap Icons name; defaults to the model controller icon.

Type:

str

color

Bulma color for the navigation icon; defaults to the model controller color.

Type:

str

pagination_target

Unpoly target for paginated list updates.

Type:

str

filter_target

Unpoly target for filter form submissions.

Type:

str

property title

Page heading from the model’s verbose_name_plural.

property icon

Bootstrap Icons name; falls back to the model controller icon.

property color

Bulma color for the navigation icon; falls back to the model controller.

breadcrumbs()[source]

List views have no parent breadcrumbs.

property list_actions

Permitted bulk-action views for the list action bar.

property list_action_count_label_one

Selection count label when exactly one row is selected.

property list_action_count_label_other

Selection count label template when multiple rows are selected.