ListMixin

class djcrud.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 router icon.

Type:

str

color

Bulma color for the navigation icon; defaults to the model router 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 router icon.

property color

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

breadcrumbs()[source]

List views have no parent breadcrumbs.

property list_actions

Bulk-action views for the list action bar.

These are collected by walking LIST_ACTION-tagged routes (no permission check at all; the bar offers the configured actions). Per-object allowed actions are propagated via data-list-actions attributes on row checkboxes (always with object=); the <list-action-bar> JS uses those to filter which buttons are enabled for the current selection. Execution time checks still apply.

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.