Skip to content

Commit

Permalink
Add wagtail-modeladmin support
Browse files Browse the repository at this point in the history
  • Loading branch information
marteinn committed Dec 30, 2023
1 parent 90289be commit f806dd6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Add Python 3.12 support (@marteinn)
- Add Wagtail 5.1 support (@marteinn)
- Add Wagtail 5.2 support (@marteinn)
- Add wagtail-modeladmin support (@marteinn)

### Changed
### Fixed
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Instead of deleting pages when pressing delete, pages will get thrown into the "

## Install

First install the python package:
1. First install the python package:
`pip install wagtail-trash`

Then add it to your `INSTALLED_APPS`:
2. Then add it to your `INSTALLED_APPS`:

```python
INSTALLED_APPS = [
Expand All @@ -20,7 +20,17 @@ INSTALLED_APPS = [
]
```

Run migrations, et voila!
If you are using [wagtail-modeladmin](https://github.com/wagtail-nest/wagtail-modeladmin/) then use `"wagtail_modeladmin"` instead of `"wagtail.contrib.modeladmin"`. like this:

```python
INSTALLED_APPS = [
# ...
"wagtail_modeladmin",
"wagtail_trash",
]
```

3. Run migrations, et voila!


## How it works
Expand Down

0 comments on commit f806dd6

Please sign in to comment.