Skip to content

Commit

Permalink
Update model events docs to include request parameter (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
kostyaten authored Nov 26, 2023
1 parent 6452d50 commit 751329c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ By default these methods do nothing.

```python
class UserAdmin(ModelView, model=User):
async def on_model_change(self, data, model, is_created):
async def on_model_change(self, data, model, is_created, request):
# Perform some other action
...

async def on_model_delete(self, model):
async def on_model_delete(self, model, request):
# Perform some other action
...
```
Expand Down

0 comments on commit 751329c

Please sign in to comment.