Documentation - Minor punctuation and capitalisation fixes (#9508)

pull/9566/head
Marvis Chukwudi 2022-11-01 11:42:54 +01:00 zatwierdzone przez GitHub
rodzic b7c04ed960
commit b9a5f9e333
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -655,6 +655,7 @@ Contributors
* Harry Percival
* Akua Dokua Asiedu
* Chisom Okeoma
* Marvis Chukwudi
Translators
===========

Wyświetl plik

@ -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):