Skip to content

Commit f3afcf2

Browse files
committed
grammar fix
1 parent 2e315e4 commit f3afcf2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ You can install the package with:
1919
pip install django-adminlink
2020
```
2121

22-
You do *not* need to add `'django_adminlink'` to the `INSTALLED_APPS` settings *unless*, you use the `SingleItemActionMixin` or a derived product from it, since then
23-
you need to make use of the `static/js/single_admin_action.js` file that ships with it. So then the `INSTALLED_APPS` looks like:
22+
You do *not* need to add `'django_adminlink'` to the `INSTALLED_APPS` settings *unless* you use the `SingleItemActionMixin` or a derived product from it. In that case,
23+
you need to make use of the `static/js/single_admin_action.js` file that ships with it. Then the `INSTALLED_APPS` looks like:
24+
2425

2526
```python3
2627
# settings.py
@@ -70,7 +71,7 @@ class MovieAdmin(SingleItemActionMixin, admin.ModelAdmin):
7071

7172
One can work with a dictionary that has as key the "label" of the button, and as value the name (key) of the action to work with. This will add a button with the label "delete" as last column. When clicked, that row, and only that row is then removed.
7273

73-
The package does not perform the action itself: it works with a small amount of *JavaScript* that just disables all checkboxes, enables the one of the selected row, and finally submits the action form, and lets Django handle the logic further.
74+
The package does not perform the action itself: it works with a small amount of *JavaScript* that just disables all checkboxes, enables only the checkbox of the selected row, and finally submits the action form, letting Django handle the rest of the logic.
7475

7576
If the label(s) and action(s) are the same, one can also work with a list of the names of the actions, like:
7677

0 commit comments

Comments
 (0)