kopia lustrzana https://github.com/wagtail/wagtail
Documentation - Minor punctuation and capitalisation fixes (#9508)
rodzic
b7c04ed960
commit
b9a5f9e333
|
@ -655,6 +655,7 @@ Contributors
|
|||
* Harry Percival
|
||||
* Akua Dokua Asiedu
|
||||
* Chisom Okeoma
|
||||
* Marvis Chukwudi
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
@ -30,7 +30,7 @@ The attributes are as follows:
|
|||
|
||||
- `display_name` - The label that will be displayed on the button in the user interface
|
||||
- `aria_label` - The `aria-label` attribute that will be applied to the button in the user interface
|
||||
- `action_type` - A unique identifier for the action. Will be required in the url for bulk actions
|
||||
- `action_type` - A unique identifier for the action (required in the URL for bulk actions)
|
||||
- `template_name` - The path to the confirmation template
|
||||
- `models` - A list of models on which the bulk action can act
|
||||
- `action_priority` (optional) - A number that is used to determine the placement of the button in the list of buttons
|
||||
|
@ -129,7 +129,7 @@ def get_context_data(self, **kwargs):
|
|||
return context
|
||||
```
|
||||
|
||||
Thes `check_perm` method can be overridden to check if an object has some permission or not. objects for which the `check_perm` returns `False` will be available in the context under the key `'items_with_no_access'`.
|
||||
Thes `check_perm` method can be overridden to check if an object has some permission or not. Objects for which the `check_perm` returns `False` will be available in the context under the key `'items_with_no_access'`.
|
||||
|
||||
```python
|
||||
def check_perm(self, obj):
|
||||
|
|
Ładowanie…
Reference in New Issue