From e4af76eaf788c450150ca65870d852b32911a027 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 1 Nov 2024 18:55:05 +0930 Subject: [PATCH] docs(views): update to denote dynamic permissions ref: #248 #345 #374 --- docs/projects/centurion_erp/development/views.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/projects/centurion_erp/development/views.md b/docs/projects/centurion_erp/development/views.md index 0ee6066fe..4070a55c6 100644 --- a/docs/projects/centurion_erp/development/views.md +++ b/docs/projects/centurion_erp/development/views.md @@ -37,13 +37,12 @@ Views are used with Centurion ERP to Fetch the data for rendering. ## Permissions -If you wish to deviate from the standard CRUD permissions, define a function called `get_dynamic_permissions` within the `view`/`ViewSet`. The function must return a list of permissions. This is useful if you have added additional permissions to a model. +If you wish to deviate from the standard CRUD permissions, define a function called `get_dynamic_permissions` within the `view`/`ViewSet`. The function must return a list of permissions. This is useful if you have added additional permissions to a model. Example of the function `get_dynamic_permissions` ``` py - def get_dynamic_permissions(self): if self.action == 'create':