From 751329c16960ce2257c66ad19509fc657af9e4ca Mon Sep 17 00:00:00 2001 From: Kostya Ten Date: Sun, 26 Nov 2023 20:58:06 +0300 Subject: [PATCH] Update model events docs to include request parameter (#677) --- docs/configurations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configurations.md b/docs/configurations.md index 882659bc..5c8c8020 100644 --- a/docs/configurations.md +++ b/docs/configurations.md @@ -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 ... ```