'Django 3.1 Field Level Permission
I have a User Form with 20+ Fields and 5 different user roles accessing the same form. Based on the Role, I need to set Field Level Permissions for the form. e.g
- User belonging to User Group 1 can create/edit/view all fields
- User belonging to User Group 2 can edit/view Fields 5, 6 and 7 only
- User belonging to User Group 3 can edit all fields but 9 and 10, view all Fields except 15 and 16.
- User belonging to User Group 4 can only view all fields but 9 and 11. So on and So forth.
Any help with the same will be appreciated Thank you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
