ListActionMixin¶
- class djcrud.views.list_action.ListActionMixin[source]¶
Bases:
ModelMixin,FormMixin,ObjectListPermissionMixinBulk actions from the list action bar (selected row PKs in
pks).Brings in
ObjectListPermissionMixinso that when combined withActionMixin(asListActionViewdoes), per-target permission checks (general shortcode +has_permission_object()per row) are performed against each row inself.object_list.The bar itself lists configured LIST_ACTION routes (see
list_actions, which walks tagged routes directly with no permission check). Per-object allowance (always checked with a concrete object) is propagated viadata-list-actionson checkboxes and filtered client-side.- property pks¶
Selected primary keys from GET or POST.
- property invalid_pks¶
Count of PKs outside the scoped queryset.
- get_form_class()[source]¶
Return
form_classor Django’s baseForm.