ListMixin¶
- class djcrud.views.list.ListMixin[source]
Bases:
objectList view behaviour: navigation tag, empty-state text, list actions.
- default_template_name
Template for the list page.
- Type:
- urlpath
URL segment for this view. Default
''(list root).- Type:
- permission_shortcode
Django permission prefix for list access. Default
'view'.- Type:
- icon
Bootstrap Icons name; defaults to the model router
icon.- Type:
- color
Bulma color for the navigation icon; defaults to the model router
color.- Type:
- pagination_target
Unpoly target for paginated list updates.
- Type:
- filter_target
Unpoly target for filter form submissions.
- Type:
- 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-actionsattributes on row checkboxes (always withobject=); 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.