Skip to content

Commit

Permalink
docs(views): update to denote dynamic permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Nov 7, 2024
1 parent 05690bc commit e96991d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/projects/centurion_erp/development/views.md
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit e96991d

Please sign in to comment.