How to define custom permissions for user creating task?

55 views
Skip to first unread message

Praveen chaduvala

unread,
Jan 12, 2021, 7:10:54 AM1/12/21
to Django REST framework
how to give custom permission for creating task 
example my model defined two types of fields 
1.Doctor model
doctor model contating is_doctor field 
2.Patient model
patient model containing Is_patient field

when i am creating some tasks patient token also creating doctors tasks

go through
my code:
Reply all
Reply to author
Forward
0 new messages